Casey posted in his journal about forgetting to spell check after composing his e-mail. I broke down a couple months ago and went through the some of the top vim scripts on vim.org to see if I could find a decent spell checker.
Well I found one called vimspell.vim and this is how I implemented it only to auto spell check my e-mail as I type and not any old text document I open up (which got REALLY anoying)
source ~/.vimrc
source ~/.mutt/vimspell.vim
highlight SpellErrors ctermfg=Red cterm=underline
term=reverse
set filetype=mail " correct syntax highlighting
set textwidth=72 " wrap at column 72
set editor = "vim -u ~/.mutt/vimrc"
UPDATE - fixed line wrapping issue with long "highlight..." ~/.mutt/vimrc line
highlight SpellErrors ctermfg=Red cterm=underline term=reverse
Re:Minor correction
jbisbee on 2004-04-02T18:42:45
the "+" was to denote that it should have been continued on the previous line. I'm just not proficent in markup to make the darn thing not wrap
That allows me to type ":aspe" and have the current document checked by 'aspell' as an e-mail message. This is a solution on it's own.cab aspe:w<CR>:!aspell -e -c %<CR>:e<CR><CR>
I use 'vimspell.vim' to have spell check as I type. It seems to just check the document 'every once in a while'. However, it doesn't check so frequently that it slows me down, and it doesn't check documents with types that don't make sense to spell check.
I have just these two other lines related to spelling in my in
let spell_executable = "aspell"
let spell_insert_mode = 0