We’re rewarding the question askers & reputations are being recalculated! Read more.
6

You can't "directly" map keys in the pop-up menu, you'll have to use expression mappings and the pumvisible() function to check if the popup menu is visible. inoremap <expr> <C-j> pumvisible() ? "\<C-n>" : "\<C-j>" inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<C-k>" If the popup menu is visible <C-j&...


5

If you use the noinsert flag in completeopt in combination with menu, the first item will be selected (but not inserted into the buffer). set completeopt=menu,noinsert


3

For future references, I would suggest you to always use noremap version of vim keymapping. Otherwise, the mappings get remapped. For example when you map like this: :imap <Esc> <Esc><Esc> Your mapped <Esc> gets again mapped to two more <Esc>. So it would probably be recursive. So, instead do this: :inoremap <Esc> <...


2

I have had moderate success with pydoc.vim for documentation; it can be helpful to use a virtualenv/run setup.py develop, but you may still have to point it at the right python. I’ve also had moderate success with tags (I use universal ctags and these hooks to keep them up to date). With tags, I can quickly jump to the source and read a docstring. ...


Only top voted, non community-wiki answers of a minimum length are eligible