Thursday, June 14, 2012

Enable spell checking in VIM

This is a feature of VIM I should know decades ago:

Enable spell checking:

:setlocal spell spelllang=en_us

  • ]s — move to the next mispelled word
  • [s — move to the previous mispelled word
  • zg — add a word to the dictionary
  • zug — undo the addition of a word to the dictionary
  • z= — view spelling suggestions for a mispelled word
Enable spell checking:

:set nospell

No comments:

Post a Comment