racer-rust/racer

Explain how to change omnifunc key bindings in README

matu3ba opened this issue · 3 comments

Here it is explained to change keybinding for autocompletion.
Is it okay to add to the README ? The default key bindings are inconvenient for fast typing.

inoremap <expr> <C-j> pumvisible() ? "\<C-n>" : "\<C-j>"
inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<C-k>"

A wrapper function could also provide them in the library.

One might want to remap the omnifunc call as well with
inoremap <expr> <C-l><C-l> pumvisible() ? "\<C-l><C-l>" : "\<C-x><C-o>"