Tip 118: Spell Check Your Work
Return to the top: <<Practical Vim>>
enabling the built-in spell checker:
:set spell
Operate Vim's Spell Checker
-
{count}z=
: skip the prompt and use the {count}th suggestion.Command Effect ]s
Jump to next spelling error [s
Jump to previous spelling error z=
Suggest corrections for current word zg
Add current word to spell file zw
Remove current word from spell file zug
Revert zg
orzw
command for current word
References:
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h ]s
# If you open the file in vim, # then you can \"ayy@a the next line to execute the vim command: :h z=