(Neo)Vim - Spell Check

Vim has an incredible good spell-checker built-in.

You can enable it via :set spelllang=en + :set spell.

Suggest

z=

For the word under/after the cursor suggest correctly spelled words. This also works to find alternatives for a word that is not highlighted as a bad word, e.g., when the word after it is bad. In Visual mode the highlighted text is taken as the word to be replaced. The results are sorted on similarity to the word being replaced. This may take a long time. Hit CTRL-C when you get bored.

Good

zg

Add word under the cursor as a good word to the first name in spellfile. A count may precede the command to indicate the entry in spellfile to be used. A count of two uses the second entry.

In Visual mode the selected characters are added as a word (including white space!). When the cursor is on text that is marked as badly spelled then the marked text is used. Otherwise the word under the cursor, separated by non-word characters, is used.

If the word is explicitly marked as bad word in another spell file the result is unpredictable.

Wrong

zw

Like zg but mark the word as a wrong (bad) word. If the word already appears in spellfile it is turned into a comment line. See :help spellfile-cleanup for getting rid of those.

Undo

zug / zuw

Undo zw and zg, remove the word from the entry in spellfile. Count used as with zg.