1. Takeshi NISHIDA
  2. vim-autocomplpop
  3. Issues
Issue #60 new

Always select the nearest match

Johnny Mudcrab
created an issue

Hi, it would be awesome if you can tell acp to always select the nearest match. What this accomplishes is it keeps a menu item always highlighted. This way you can keep typing characters to narrow the matches and just hit enter as soon as the right one is selected.

Before I used acp i was using

inoremap <expr> <C-n> pumvisible() ? '<C-n>' :
  \ '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'

to simulate the Down-Key everytime i type an expression and the popup menu is visible. I really got used to this behavior.

Is there a way to make this behavior work with acp?

cheers johnny

Comments (0)

  1. Log in to comment