I use Vim for all system file editing,and also for writing scripts. Sometimes i’m logged into my server and as there is no desktop there are no gui apps, I use Vim to send out a quick tweet to twitter via Twitvim. I also compose Mutt emails with Vim, so therefore having a spell check is pretty handy.
To enable Spellcheck in Vim, you need to edit your Vim config file:
syn spell toplevel
set spell spelllang=en_us
# This copies vispellen with English spell check to .vimrc
cp vispellen .vimrc
# This copies vispelles with Spanish spell check to .vimrc
cp vispelles .vimrc
Very basic I know, but it works.
Vim Spellcheck command basics:
]s move to the next mispelled word
[s move to the previous mispelled word
zg add a word to the dictionary
zug undo the addition of a word to the dictionary
z= view spelling suggestions for a mispelled word