Here’s something I didn’t know.
I have used Vim to write text files in the past and, when I do so, I use
aspell check to catch my multitude of typing errors. It turns out that Vim is also able to support spell checking, so I no longer need to keep dropping back to the command line.
Joe ‘Zonker’ Brockmeier goes into detail, but I am reposting the highlights here so that I can easily find them again.
:setlocal spell spelllang=en_gb turns on the spell checker.
:set nospell turns it off again.
[s moves to the next and previous spelling errors respectively.
z= brings up a list of alternatives for the typo under the cursor.
zg adds the word to the dictionary.
zw allows you to mark a word as incorrect.
This post was entirely written in Vim.