Correct a word with built-in suggestions
z=
Example
Normal mode on mispelled in A mispelled word. English spelling support is available.
A mispelled word.Cursor on line 1, column 3- :setlocal spell spelllang=en_us<CR> English spell checking enabled in this window
- z= Suggestions open · enter the number for misspelled, then Enter
A misspelled word.Cursor on line 1, column 3Details & Vim help
Show suggested spellings for the word under or after the cursor.
Repair prose without selecting and retyping the whole word.
Suggestion order depends on dictionary and configuration, so choose the displayed number rather than memorizing it. Spell support and language files must be available. spell is window-local; spelllang is buffer-local.
Illustrates choosing “misspelled” from the suggestions; its number is not fixed.
Try it in Vim
- Enable a suitable dictionary, for example :setlocal spell spelllang=en_us.
- Place the cursor on a questionable word and press z=.
- Read the choices and enter the number for the spelling you want.