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
Try this:
inoremap pumvisible() \|\| &omnifunc == '' ? \ "\C-n>" : \ "\C-x>\C-o>=pumvisible() ?" . \ "\"\\c-n>\\c-p>\\c-n>\" :" . \ "\" \\bs>\\C-n>\"\" imap