Use ctrl+space to invoke clang_complete

Posted by tsurko on Programmers See other posts from Programmers or by tsurko
Published on 2012-11-30T15:50:03Z Indexed on 2012/11/30 17:19 UTC
Read the original article Hit count: 231

Filed under:
|
|

I've setup a simple vim environment for C++ development and I use clang_complete for code completion. I'm wondering if there is a way to invoke clang_complete with ctrl+space (as in Eclipse for example)?

Currently it is invoked with C-X C-U, which is not very convenient. In the plugin code I saw this:

inoremap <expr> <buffer> <C-X><C-U> <SID>LaunchCompletion()

So I tried something like this in my vimrc:

inoremap <expr> <buffer> <C-Space> <SID>LaunchCompletion()

Of course it didn't work:) I read vim's doc about key mapping. but no good. Have you got any suggestions what I'm doing wrong?

© Programmers or respective owner

Related posts about vim

Related posts about clang