Vim Spell Check

Vim has built-in spell check functionality, but is not enabled by default.

To enable, and set language to Canadian English: :set spell spelllang=en_ca

To disable again: :set nospell

Using Spell Checking

Like most spell checking features, Vim maintains a local dictionary. Any words in the buffer not present on the list will be highlighted.

To jump to the next/previous misspelling: ]s and [s motions are available.

With the cursor on a word, there are a couple commands available:

  • z= suggests a list of alternatives
  • zg add the word to Vim’s dictionary
  • zw remove the word from Vim’s dictionary

Notes mentioning this note