Using Vim to send mail on Windows
From Vim Tips Wiki
Tip 590 • Previous Tip • Next Tip
Created: October 22, 2003 Complexity: basic Author: Stanislav Sitar Minimum version: 5.7 Karma: 10/15 Imported from: Tip#590
The question of using Vim for writing email messages with Vim on windows was raised many times.
Finally there is an elegant solution. At http://sylpheed-claws.sourceforge.net/win32/ download sylpheed-0.9.6claws.exe and install.
Go to menu configuration -> Common preferences
Go to tab Other and fill something like
c:\Progra~1\Vim\vim62b\gvim.exe -f "%s"
(depending on where your Vim is installed) as the the editor option
The -f option is very important so Vim does not fork.
You might also go to Compose tab and select Automatically launch an external editor.
[edit] Comments
Are you sure about the "-f" flag ? So far, I've never seen this flag do anything under Windows. That's why I use mutt compiled for cygwin with the win32 version of Vim.
You wrote "Finally there is an elegant solution", but there are many solutions: at random Mahogany http://mahogany.sf.net (excellent one) or pine (great, ever great) or use Google.
Let me get this right - you want me to switch to a whole new email client just so that I can change its default editor to something else. Not just Vim - *anything*. How is this a Vim tip, exactly??
PC-Pine offers an external-editor-feature too.
Look at script#1052 -- it can send, receive and organize emails from within Vim on Windows and Unix (but requires not only Vim with embedded Perl but also external Perl).
See VimTip805 for a general solution for Windows.
Categories: Review | VimTip | Email
