Spellcheck as you type with Vim

by simpsonjulian on July 23, 2008

I use Vim on my little Asus eeepc to do my writing on the train. As I only write text or html, it’s been fine. But little luxuries like highlighting miss-spelled words are nice. I just found out that Vim supports this. Here’s the lines to add to your .vimrc:

setlocal spell spelllang=en_gb
set mousemodel=popup
set spellfile=~/spellfile.add

There’s loads of help on the feature if you type :help spell inside Vim. But here’s the basics: ]s will skip to the next word that it doesn’t know about. If it needs to go into your custom dictionary, zg will add it. And in graphical mode, you can use the mouse to suggest words. Lovely.

Share with the group:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • LinkedIn
  • Slashdot
  • StumbleUpon

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

{ 1 trackback }

Technical Related Notes » Blog Archive » links for 2008-10-08
January 12, 2009 at 2:03 am

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Should every target have a secret?

Next post: Ant Best Practices: The Clean Test