I think vim is a terminal application. Meaning you must first open a terminal and then you must call vim with the file you want to edit.<br><br><br><br>create a text file and enter the following into it. Then use this file to open the attachment. 
<br><br>#!/bin/bash<br>konsole -e vim $1<br><br><br><br><div><span class="gmail_quote">On 11/17/06, <b class="gmail_sendername">Kamaraju Kusumanchi</b> <<a href="mailto:kamaraju@bluebottle.com">kamaraju@bluebottle.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I recently got an attachment in kmail and I did<br><br>right click -> Open with -> entered vim in the box.
<br><br>but kmail did not open the file in vim. If I enter gvim, then an empty gvim<br>window comes up but the file is not loaded.<br><br>Any idea as to what is happening and how to rectify the problem?<br><br>Using Debian Etch, KDE 
3.5.5, vim 7.0.<br><br>thanks<br>raju<br><br>--<br>Kamaraju S Kusumanchi<br><a href="http://www.people.cornell.edu/pages/kk288/">http://www.people.cornell.edu/pages/kk288/</a><br><a href="http://malayamaarutham.blogspot.com/">
http://malayamaarutham.blogspot.com/</a><br>___________________________________________________<br>This message is from the kde mailing list.<br>Account management:  <a href="https://mail.kde.org/mailman/listinfo/kde">https://mail.kde.org/mailman/listinfo/kde
</a>.<br>Archives: <a href="http://lists.kde.org/">http://lists.kde.org/</a>.<br>More info: <a href="http://www.kde.org/faq.html">http://www.kde.org/faq.html</a>.<br></blockquote></div><br><br clear="all"><br>-- <br>In vino veritas.
<br>        [In wine there is truth.]<br>                -- Pliny