Search code examples
vimmappingomnicomplete

How do I map ctrl x ctrl o to ctrl space in terminal vim?


After searching a bit on the net it seems that I can't map CtrlSpace to anything/alot. Is there a way to do it today, what I found was usually 2 years old.


Solution

  • I've run into the same issue, the short answer is yes you can, and not only in the gui version. Adding this on you .vimrc is enough:

    inoremap <C-Space> <C-x><C-o>
    inoremap <C-@> <C-Space>