Wednesday 2 May 2012

Spell checker in Vim

Vim's built in spell checker seems a little easier than externally using aspell. Firstly activate the feature in Vim

:set spell

Choose your language (for example)

:set spelllang=en_gb

You can add words that are spelled incorrectly (goes in something like ~/vim/en.utf-8.add) by simply going to the word that is highlighted and using the key sequence

zg

to add the word. See

:help spell

for more information.