Vim spell checking for dummies
25 Mar 2016:set spell will mark misspelled words in red, but this is not Microsoft Word.
Here are a few tricks I use to work effectively with the Vim spell checker:
-
If you have vim-unimpaired installed you can toggle spell checking on and off with
cos -
Usually though, whether you want it enabled depends on the file type you are editing. You can put
setlocal spellin the appropriatevim/after/ftplugin/{filetype}.vim, probably at leastmarkdownandgitcommit. -
]swill take you to the next misspelled word. -
z=will bring up a list of suggestions for correcting the word under the cursor