Wikia

Vim Tips Wiki

Changes: Use gvim in kmail

Edit

Back to page

(Comments)
(removed redundant comment)
 
Line 31: Line 31:
 
----
 
----
 
Yes it works also with kvim (which is the KDE way). Just put "kvim -f %f" and you're done, when you start typing, it fires up kvim, when leave with :x you get back to kmail kinda like when you use vim with pine.
 
Yes it works also with kvim (which is the KDE way). Just put "kvim -f %f" and you're done, when you start typing, it fires up kvim, when leave with :x you get back to kmail kinda like when you use vim with pine.
 
----
 
You can set the filetype automatically to mail by replacing "gvim -f %f" with "gvim "+set ft=mail" -f %f"
 
   
 
----
 
----

Latest revision as of 18:38, February 11, 2009

Tip 302 Printable Monobook Previous Next

created August 7, 2002 · complexity basic · author Davide Patti · version 6.0


To automatically open gvim to edit in kmail, "-f" command line option must be used.

In kmail configuration go to the composer settings, and write in the "use external editor" field the following command:

gvim -f %f

Without -f option gvim would work in background and editing would not have any effect on kmail.

To set the filetype automatically to mail:

gvim "+set ft=mail" -f %f

CommentsEdit

See also http://freehackers.org/kvim/ - integrating Vim in KDE. It looks really nice! (I'm not sure of exactly what is needed to get it running i KMail though - but look at those nice screenshots..)

-> kvim changed its name to yzis, so have a look at http://www.yzis.org/


This tip is basically true for every mua that allows integration of external editors, e.g. mutt


Yes it works also with kvim (which is the KDE way). Just put "kvim -f %f" and you're done, when you start typing, it fires up kvim, when leave with :x you get back to kmail kinda like when you use vim with pine.


Around Wikia's network

Random Wiki