Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #590 - Using Vim to send mail on Windows

Created: October 22, 2003 3:17 Complexity: basic Author: Stanislav Sitar 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.


go to

http://sylpheed-claws.sourceforge.net/win32/

and download

sylpheed-0.9.6claws.exe

Install an application


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.


Tada.......


Beware

Sylphed-Claws is a bleeding edge software.


Have a nice time

Stano

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.

hermitte {at} free {dot} fr , October 22, 2003 15:38


You wrote "Finally there *is* an elegant solution", but there is *many* solutions: at random Mahogany http://mahogany.sf.net (excellent one) or pine (great, ever great) or ...use google ;-)

Anonymous , October 22, 2003 22:27


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??

Kartik Agaram , October 23, 2003 10:12


You are unfair. I think this is an interresting thing to know when we are to decide which MUA to install and use. When considering which tool to use (IDE, MUA, news-reader, etc.), I often check if I will be able to use an external editor (which is Vim of course).

hermitte {at} free {dot} fr , October 24, 2003 1:49


PC-Pine offers an external-editor-feature too.

Anonymous , November 26, 2003 10:09


Look at [/scripts/script.php?script_id=1052 vimscript #1052] -- 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).

anon , August 10, 2004 18:02


general solution for windows see VimTip805

anon , October 19, 2004 22:33


Advertisement