The Stripey Site

Pine & Vim

Pine is a mail user agent available for Unix and Windows. This page details how to make it work well with Vim.

Calling Vim from Pine

By default Pine uses its own built-in editor, Pico. To have it use Vim instead requires this setting:
editor                   = vim
That much is fairly obvious. Rather less so is that these two settings are needed as well:
            [X]  enable-alternate-editor-cmd           
            [X]  enable-alternate-editor-implicitly    
These settings can be found by pressing S then C at the main menu, then using the W command to search for the string editor.

Once set up headers will be edited in Pine exactly as before, but moving ‘down’ past the last header and into the message body will cause Vim to be launched to edit the body; no headers will be loaded into Vim.

Formatting Messages Nicely

Information on how Vim can format messages sensibly as you type is given in the section on formatting text files. Note that the gq reformatting keystroke generally works fine with quoted text, keeping the quotation characters in sensible places, even with multiple levels of quotation.


Feedback is welcome via vim-www@stripey.com. © Copyright 2000 — see copying information for details.