Editing Firefox textareas with vim

I don’t know about you, but I hate editing any non-trivial amount of text in an HTML form. Sometimes the window is pretty small and you don’t have a lot of editing power. Here’s how I made it so that I can edit those textareas with vim

  1. Install Firefox
  2. Install vim
  3. Install MozEX (special version; not one from mozex.mozdev.org)
  4. Go to the options for MozEX and change the textarea editor to:
    C:\Progra~1\Vim\vim63\gvim.exe %t
  5. Note that long filenames don’t work, you have to use the DOS-style 8.3 names, which you can get from using DIR /X at the command prompt.

Obviously, if you don’t like vim, you can apply this to whatever other editor you like as long as you pay attention to the note about having to use DOS-style 8.3 names.

If you’re more of an Emacs person, then check out this other post of mine. Yes, I use both vim and Emacs. Somebody’s got to bridge the gap between the zealots… 🙂

Leave a Reply

Your email address will not be published.