I've been using vim for about 5 years now and have grown quite effective with it, to the point where writing things without vim feels so painfully slow. Just about everything that I write, I write in vim with the exception of email. All of my email accounts are google hosted, and right now I just use the Gmail interface. Is there a good client that I can easily setup so that I can write all my emails in vim (and not just copy paste when I'm done)?
5 Answers
Try mutt. You can use external editor with that, default is vim. The navigation is all similar to vim too.
Use It's All Text! to make your text boxes (including the GMail plain text compose box) editable in an external editor. Or you can set $EDITOR
to vim
and use alpine
.
-
Very regrettably, this plugin has died, as indicated here: github.com/docwhat/itsalltext/blob/master/README.md :-(– M_MCommented Nov 19, 2019 at 15:50
I know the question was posted almost six years ago, but for anyone else who in the future might land here while trying to figure out how to get vim into every aspect of their lives, I recommend checking out the wasavi extension. Essentially, Ctrl-Enter will start a vi buffer within the textbox your cursor is currently in. Do all your vi magic and hit ZZ and you're done!
Works in Gmail (which was my primary use case when looking around for something like this, hence why I ended up here). In fact, this answer was typed using vi from within the textbox. Hopefully wasavi will meet your needs. I know I am absolutely loving it.
-
Added note: github.com/brookhong/Surfingkeys and github.com/glacambre/firenvim also do this now. Commented Apr 23, 2023 at 0:08
Any command line email client will let you use your preferred command line editor. The common ones are:
Personally I've been loving sup recently. It's kind of a cross between mutt and GMail. It does tags and search really well, and I increasingly love the whole model of how it works.
-
The only problem with sup is that it does not synchronize with Gmail.– AlexCommented Apr 30, 2014 at 4:30
I use the ViewSourceWith Firefox plugin for this. Type Ctrl+Shift+U to use gvim
to edit the text currently in the text box and just exit gvim
(ZZ
or :wq
) to put your edited text back in the text box.