Explain how to change omnifunc key bindings in README
matu3ba opened this issue · 3 comments
matu3ba commented
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>"
matu3ba commented
A wrapper function could also provide them in the library.
matu3ba commented
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>"
kngwyu commented
Please file an issue at https://github.com/racer-rust/vim-racer