infogami wiki

share your infogami tips and tricks

using lynx & vim with infogami

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.

  1. Launch lynx with $ lynx http://**yoursite**.infogami.com/.
  2. Type "o" to go to the options screen.
  3. Check the save-to-disk option at the top.
  4. Fill in the editor blank with "vim".
  5. You may want to set cookies to "always accept".
  6. Save changes.
  7. Arrow down to the log in link & log in.
  8. 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.
  9. Go to a page you want to edit & choose the edit link.
  10. Hit tab to enter the body text box.
  11. Type ^X (i.e. hold down the Ctrl key & type "x") followed by "e". Lynx will launch vim with the body of the page.
  12. Edit to your hearts content.
  13. Type ":x" to exit vim & return to lynx.
  14. Type "n" when prompted to tell lynx not to wrap long lines.
  15. 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.