📅 2014-Jun-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ spellcheck, vim ⬩ 📚 Archive
Vim has built-in ability to perform spellcheck. The VimCasts video on spellcheck gives a good summary of these features.
set spelllangoption to set the language to be used for spellcheck. For example, to set International English, add this to your vimrc:
To perform a spellcheck use
:set spell. The wrongly spelled words are marked in Vim.
]s to jump to next misspelled word.
z= to see suggestions for misspelled word under cursor.
zg to add misspelled word under cursor to your personal spellfile. Remember it as adding a good word.
zG to ignore the misspelled word under cursor for this session.
zw to mark correctly spelled word under cursor as a misspelling. Remember it as adding a wrong word.
The spellfile can be found in
~/.vim/spell/. For example, mine is named
Tried with: Vim 7.4 and Ubuntu 14.04