In the example below, how do I use <tab> to select HttpResponse the item instead of <enter>? I'd like to make this change permanent.

This is using Kite within vim in case it matters.

enter image description here

  • 3
    Have a look at :h popupmenu-keys. I think there it explains how to map something down there. – Quasímodo Feb 21 at 12:29

You need this map:

inoremap <expr> <TAB> pumvisible() ? "<C-y>" : "<TAB>"

If PUM (complete menu) is visible, then execute <C-y> (which selects an item), otherwise, do a normal tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.