GMail + Vim

Link. June 30, 2008. Comments [5]. Posted in: Vim

I've been a big GMail user ever since I got my first account and I've gotten very used to it. About a year ago I switched the email for my website and our corporate email over to Google Apps and eventually was able to drop Outlook completely [1].

I've been extremely satisfied with this setup and don't regret it at all. However, as much as I like GMail and all, it's sometimes a drag when actually editing new emails or responses to existing ones. It's not really GMail's fault; it's just that a TEXTAREA isn't really a good editor for email (I try to stick to plain text email only as much as possible).

IAT Fortunately, I discovered a while ago the It's All Text! extension for Firefox. This little extension gives you a small button next to textareas; when you click it, it will open your favorite text editor to edit the text, and then replace it with whatever you saved before closing it.

Now, I can just use this to edit complex/longer emails in gVim, and get all the text-editing goodness I'm used to!

Firefox did have one nice feature I missed at first: Spell checking. This wasn't always useful, though, as it only really supports a single language at a time, and I regularly use both Spanish and English, but it was better than nothing.

Vim, however, also supports spell checking! I just had never bothered setting it up correctly. I've now configured my .vimrc file so that I can enable/disable spell checking for English or Spanish with a few key-presses. Here's how I configured mine:

map <Leader>se :setlocal spell spelllang=en_us<CR>
map <Leader>ss :setlocal spell spelllang=es_es<CR>
map <Leader>sn :setlocal nospell<CR>

Now I can just press \se in normal mode to start the spell checker in English or \ss for Spanish, and then \sn to disable it later on, if I want to. Otherwise I just keep spell checking disabled so that it doesn't get in the way of my coding sessions.

VimSpell

The combination of It's all Text!, Vim and its spell checker makes for a much nicer GMail experience for me.

[1] I still need to migrate some old personal email over to my GMail account, which I haven't done because I'm lazy, but I should definitely get around to that some day.



Monday, June 30, 2008 12:24:15 PM (SA Pacific Standard Time, UTC-05:00)
Have you used Firefox and Vimperator addin. It is like having vim within
the browser.

Naveen
Monday, June 30, 2008 1:23:56 PM (SA Pacific Standard Time, UTC-05:00)
@Naveen: Yes, I'm a big fan of Vimperator and use it all the time; but it doesn't really help make firefox a better mail editor; just a better browser! It's All Text! does give me that extra functionality.
Wednesday, July 02, 2008 10:45:54 AM (SA Pacific Standard Time, UTC-05:00)
Hey, Tomas,

FYI This is your near-jubilee ;)

Total Posts: 999

Congrat!
Monday, July 07, 2008 9:52:46 PM (SA Pacific Standard Time, UTC-05:00)
Hey, thanks for the great article! Like you, I am a devote Gmail and Vim user. I always end up typing j, k, w ,e , v, O, and cw all over my emails... how tiresome!

Also, I'm one month into my first job out of college, and most of the server side code is .NET, so I'll definitively be keeping up with your blog.

Thanks again!
Wednesday, July 16, 2008 9:25:59 AM (SA Pacific Standard Time, UTC-05:00)
I thought you only need to configure Vimperator to use an external editor.

:se editor=vim -f

And then use Ctrl+I, if I remember correctly. Haven't never tested though, textarea was just fine with me.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Syndicate

Ads


Links

Categories

Statistics

Total Posts: 1020
This Year: 90
This Month: 9
This Week: 0
Comments: 791

Blogroll

Post Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.1.8102.813

Sign In