Vim Ctrl-Space Omni & Keyword Completion

Posted on

Ctrl-X Ctrl-O and even Ctrl-P are pretty awkward for me, so I use the following mapping:

" Ctrl-Space for completions. Heck Yeah!
inoremap <expr> <C-Space> pumvisible() || &omnifunc == '' ?
"
<lt>C-n>" :
"
<lt>C-x><lt>C-o><c-r>=pumvisible() ?" .
"
"\<

Leave a Reply

Your email address will not be published. Required fields are marked *