You can enable spell check in vim, gvim, or macvim by entering command mode1 and typing :set spell.
To make this permanent for every time you open a file in vim you can add this line to your ~/.vimrc2 file:
1
| |
If you use vim for programming you might not want it to spell check every file. If, for example, you use vim to edit your markdown files for your Octopress Blog AND you also use vim to edit your ruby project you will want to use the autocmd instead:
1
| |
This will only enable spell check if you open a file with type “Markdown”