Saturday, June 20, 2020

Spell Checker and Dictionary search in VIM

:set spell
:set spelllang=pt_br

Vim start highlighting wrong senteces in the language selected


Start typed a word for example
paral
Ctrl+x, Ctr+k         - This will open menu with word of the dictionary


Navigate in wrong words, 
[s    -   backwards
 ]s    -  forward

Show possible fix to the current wrong word
 z=


If  you have two splits or buffer set for only one buffer or split

:setlocal  spell spelllang=en_us


to disable

:set nospell

No comments:

Blog Archive