Ctrl+Space for omni and keyword completion in vim

后端 未结 3 1696
南方客
南方客 2020-12-08 04:51

I Want to use Ctrl+Space for omni-completion (and keyword completion if there is no omni-completion) in vim. I\'ve tried this which I found somewhere o

3条回答
  •  既然无缘
    2020-12-08 05:43

    Try this:

    inoremap   pumvisible() \|\| &omnifunc == '' ?
    \ "\C-n>" :
    \ "\C-x>\C-o>=pumvisible() ?" .
    \ "\"\\c-n>\\c-p>\\c-n>\" :" .
    \ "\" \\bs>\\C-n>\"\"
    imap  
    

提交回复
热议问题