I recently discovered this neat feature that VIM have. So basically you can do a spell check on your document from within vim. You don't even need a plugin for this. It is a built in feature.
YouTube Tutorial : VIM built in feature: Spell checking
For this all you need is this command
After running this command if everything goes well words that vim thinks are incorrectly spelled will be highlighted in some way.
Now once the command is called, you can do certain things. And of course vim has some nice keybinding for them.:
You can jump to these highlighted words easily.
- go to next word
- go to previous word
To see the suggestions for correct spelling press
z=. Then choose the number from shown list. Followed by enter.
So vim for spell checking has a list of Good words. This list contains all the words that are regarded as spelled correctly. You can even add new words to this list. For this type
zg and to undo this
Similarly vim has a Wrong word list. They are treated as misspelled. And again you can add new words to this list with
zw and undo with
zuw. So that from next time these words will be highlighted as well.
Note: Try not to keep a word in both good and wrong list. It is either good or bad; noting in between.