Skip to content

4.3. Spelling And Autocompletion

shinokada edited this page Feb 2, 2014 · 1 revision

vim-online-thesaurus

vim-online-thesaurus

<Local leader>K # \K
q # to quit

File Name Autocompletion

# insert mode
<c-x><c-f>

# normal mode
:e <tab>

Autocompletion general File

Geek Stuff

<c-x><c-n> # word completion from the existing words in the current file
<c-x><c-l> # line completion
<c-x><c-f> # file name completion
<c-x><c-k> # dictionary word completion. Need to set dictionary+=/usr/share/dict/words in .vimrc

Geek Stuff: Vim Thesaurus

<c-x><c-t> # to display thesaurus

usevim

Spell check

Using spell checking in Vim

:set spell spelllang=en_us
:set nospell
# move to a missspelled word
]s # or [s
# get a list of suggestion
z=
# add to your dictionary
zg
Clone this wiki locally