Wednesday, May 26, 2010

Avoid Kmail Editor And Use Vim Editor Instead

Kmail has bad editor when it comes to sending patches inlined. More often the message gets mangled (word wrapped). To overcome this problem Kmail allows the use of external editor.

1. Settings->Configure Mail and Click on Composer
2. Click on "Use External Editor" and specify the editor as "xterm -e vim -f %f"
3. Click Apply.

Open the composer and type in mail id and subject and click on the body. When you start typing a new editor window opens up which is vim. Type in your message and type ":wq". Thats it.

For people intending to send patches, use :vsplit and use visual method to highlight and 'y' to yank the highlighted message. Close the vsplit and type "p" to paste it.

23 comments:

ShilaL_Kappler said...

your son/daughter is so cute............................................................

士銘士銘 said...

成功的第一要素是珍惜自己 ............................................................

reeselane said...

成熟,就是有能力適應生活中的模糊。..................................................

saa said...

nice to know you, and glad to find such a good artical!.........................

俊偉 said...

Where did you purchase this product?..................................................

韋以 said...

一定要保持最佳狀況呦,加油!!!期待你發表的新文章!.................................................................                           

宛真宛真 said...

成熟,就是有能力適應生活中的模糊。....................................................................

淑娟淑娟 said...

卡爾.桑得柏:「除非先有夢,否則一切皆不成。」共勉!............................................................

吳婷婷 said...

It takes all kinds to make a world.............................................................

香昱信張君林 said...

People throw stones only at trees with fruit on them.............................................................

JasonBirk佳琪 said...

朋友是一面鏡子............................................................

rreynolds385 said...

新手上路哦~請大家多支持^_^..................................................................

梁淑娟梁淑娟 said...

期待更新,要保持最佳狀況呦............................................................

紹函紹函 said...

打擾你實在不好意思, 你的blog很好看呢!!!!............................................................

俊宏淑松 said...

開懷幸福的生活,是每個人的夢想~~希望大家都能夠實現!...............................................................

佳瑩佳瑩 said...

獨居時,要反省自己的過錯;在社會大眾之間,則要忘卻別人的過失。..................................................

魏育如 said...

感謝您費心的分享............................................................

家唐銘 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

建宗穎彰 said...

As a man sows, so he shall reap.............................................................

家唐銘 said...

面對光明,陰影就在我們身後!加油哦!............................................................

沈貞李添睿儀 said...

要保持更新呦,加油!!!期待你的新文章!!!............................................................

偉曹琬 said...

活是一種鍛鍊靈魂的東西..................................................................

冠陳儒 said...

心中醒,口中說,紙上作,不從身上習過,皆無用也。..................................................