completor.vim
completor.vim copied to clipboard
Trigger completion with Ctrl+Space
Hi I've been trying to bind the completion trigger to <C-Space> but to no avail.
I'm quite the newb when it comes to bindings in vim, but after some Googling managed to come up with:
inoremap <expr> <C-@> pumvisible() ? "\<C-n>" : "\<C-x>\<C-u>\<C-p>"
Something still doesn't seem right however, I think my main problem is not fully understanding how the completions are triggered. If anyone could shed some light on this, it would be much appreciated.
I tested with the <C-@> binding and it works very well with the config let g:completor_auto_trigger = 0.