Tip: #302 - Use gvim in kmail
Created: August 7, 2002 6:08 Complexity: basic Author: Davide Patti Version: 6.0 Karma: 48/21 Imported from: Tip#302
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.
Comments
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..)
nlm--AT--valtech.se , August 8, 2002 16:02
This tip is basically true for every mua that allows integration of external editors, e.g. mutt
zoran--AT--spacemail.com , August 9, 2002 6:51
Thank you, thank you, thank you! I've been trying to get this working for months! It takes just one switch. Amazing.
Anonymous , October 7, 2002 16:46
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
drini--AT--br.crashed.net , January 3, 2003 16:03
I have been looking for that commandline-switch too!
"gvim --help" just says:
-f ... Foreground: Don't fork when starting GUI
which was not very helpful for me.
Thank you!
ugly.duck---SNIP-----AT-----SNIP---gmx.de , February 19, 2003 20:57
is there anyway for it to set the file type automatically to mail?
pekcheey--AT--comp.nus.edu.sg , June 15, 2004 21:45
Thanks for the tip. I've been struggling with it as well. Next step would be to get kvim/gvim working inside the composer window. It still looks kind of funny to me to have 2 windows fired up after entering ctrl-N in Kmail
noodmaatregel--AT--hotmail.com , October 20, 2005 0:28
You can set the filetype automaticall to mail by replacing "gvim -f %f" with "gvim "+set ft=mail" -f %f"
theine--AT--nordita.dk , June 8, 2006 15:40