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 ]sJump to next spelling error [sJump to previous spelling error z=Suggest corrections for current word zgAdd current word to spell file zwRemove current word from spell file zugRevert zgorzwcommand 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=