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:
]s
- find next unknown word[s
- find previous unknown word
With the cursor over a highlighted word:
z=
- show word replacement suggestionszg
- add this word to the dictionary (try remembering 'Zhis is Good')