Spelling in Vi


After discovering a number of typos in my .txt files, a quick search found this Vim documentation file on spelling. I'll repeat the basics here, see the article for all the details.

Invoke Vi's spelling mode with this command

:setlocal spell spelllang=en_us

I used this to enable the Australian English dictionary

:setlocal spell spelllang=en_au

Now that words are highlighted, navigate between the highlighted words with:

With the cursor over a highlighted word: