Vim 7 comes with Ubuntu Edgy. On new feature is spelling highlighting. Add the following commands to your ~/.vimrc
" enable spelling
set spell
" set the language to Australian English
set spelllang=en_au
" set the personal dictionary file
set spellfile=~/.vim.spell.en.add
Vim is very particular about the spellfile name, it must end in .en.add (for Engligh).
To switch off spelling run
:set nospell
Spelling can be switched on or off on a per window basis by using :setlocal instead of :set
No comments:
Post a Comment