History Report a problem
Article Edit this page Discussion

Using Vim to send mail on Windows

From Vim Tips Wiki

(Redirected from VimTip590)
Jump to: navigation, search
 

Tip 590Previous TipNext 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.


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for featured Wikia!

Send this article to a friend
"Using Vim to send mail on Windows"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation