This may not be useful to anyone but me, but on the off chance it is... Also, this isn't really infogami specific, but it works well with infogami.
- Launch lynx with
$ lynx http://**yoursite**.infogami.com/.
- Type "o" to go to the options screen.
- Check the save-to-disk option at the top.
- Fill in the editor blank with "vim".
- You may want to set cookies to "always accept".
- Save changes.
- Arrow down to the log in link & log in.
- After a bit, lynx will ask you to (P)roceed, (G)et, or (C)ancel. Type "g" & you'll go back to your site's home page.
- Go to a page you want to edit & choose the edit link.
- Hit tab to enter the body text box.
- Type ^X (i.e. hold down the Ctrl key & type "x") followed by "e". Lynx will launch vim with the body of the page.
- Edit to your hearts content.
- Type ":x" to exit vim & return to lynx.
- Type "n" when prompted to tell lynx not to wrap long lines.
- Hit tab to move to the save-and-view button. Hit enter to save.
You can also add a vim modeline to the end of an infogami page to adjust vim settings for editing that page.
I wonder if there is a way to hide the modeline so it doesn't show up on the page. It appears that HTML comments work.
last updated 1 year ago
#
history