Use :set spell to enable spell checking. If it's source code, gvim is smart enough to only spell check comments and string literals.
:help spell will give you all the details. Here are a few excerpts:
To search for the next misspelled word:
] s Move to next misspelled word after the cursor.
A count before the command can be used to repeat.
'wrapscan' applies.
[s Like "] s" but search backwards, find the misspelled
word before the cursor.
Finding suggestions for bad words:
z = For the word under / after the cursor, suggest correctly
spelled words.
To add words to your own word list:
zg Add word under the cursor as a good word
Also see :help set spelllang information on changing your vocabulary to include other regions, languages, or word sets (e.g. medical jargon).
gvim must be compiled with | + syntax |.
I don't put :set spell in my .vimrc, because when I code, there are too many variable names in my comments that are tagged. If there is a specific type of file that you want to check, use the auto command in your .vimrc. Or just turn it on manually when you need it.
Eric Johnson Mar 12 '09 at 20:31 2009-03-12 20:31
source share