Fandom

Vim Tips Wiki

Use gvim in kmail

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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.


Also on Fandom

Random Wiki