2011-12-09

Vim - полезные штуки


#spellcheck
setlocal spell spelllang=en
setlocal spell spelllang=ru

#enable omni completition
filetype plugin on
set ofu=syntaxcomplete#Complete

#remap omni completition to Ctrl+Space
inoremap   pumvisible() \|\| &omnifunc == '' ?
\ "\C-n>" :
\ "\C-x>\C-o>=pumvisible() ?" .
\ "\"\\c-n>\\c-p>\\c-n>\" :" .
\ "\" \\bs>\\C-n>\"\"
imap  

Комментариев нет:

"In order to ask a question you must already know most of the answer"
/Robert Sheckley/