Sunday, 13 April 2014
Spell Checking in Vim
I always like being able to do things via the terminal and for typing I like to use vim. An awesome feature I just discovered recently is that vim has a great spell checking ability.
First thing I did was update my ~/.vimrc file with the following
:map <F5> :setlocal spell! spelllang=en_ca
This allows the spell checking to be enabled and disabled via a simple F5.
Note : I use 'en_ca' for English Canada but this can easily be changed as appropriate.
To go to a word that has a spelling error :
]s : move to next error
[s : move to previous error
z= : suggests alternatives that can be correct e.g.
Labels:
Linux-Apps,
vim
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment