Ever wanted to use an external editor, like vim, with Thunderbird for composing email? Rock out.
Replace vim with your editor of choice below. Replace Windows with your OS of choice below.
- Install vim, an open source vi clone for many OSes. The link goes directly to the Windows installer. Other stuff can be found at the vim homepage.
- Install the External Editor Extension for Thunderbird. Installation and configuration is poorly documented. This is a walkthrough.
- Download the .xpi file to your local PC
- In Thunderbird, go to Tools -> Extensions
- Select ‘Install’ and point it at your .xpi file.
- Close all Thunderbird windows.
- Start Thunderbird. Compose a new blank message.
- In that COMPOSE window, not the main Thunderbird window, go to View -> Toolbars -> Customize
- Drag the icon for ‘External Editor’ up to the COMPOSE window’s toolbar and place the item where you want it. Release your mouse button to drop it.
- Close your empty compose window. “Don’t save”
- In the main Thunderbird window, go to Tools -> Extensions. Select (single-click) the External Editor extension. Click the Options button.
- Browse around for gvim64.exe as the editor to use. Leave the rest alone. Windows users ignore the warning information at the bottom of the ‘Usage’ web page for the External Editor Extension (-nofork does not work with gvim64.exe)
- Click “OK” for the options window if you have not done so yet. Close the Extensions window.
From there on out, any time you are in the compose window (reply, reply-all, new message…etc), clicking the ‘External Editor’ button in your toolbar should throw you into gvim64.exe with your message and headers. Do your editing, save + quit as normal. Your GUI window will update with the altered contents, including headers.