tags:

views:

303

answers:

1

Hi there,

standard for VIM complete is to select the first item in the dropdown-box (and select the desired entry with up and down). i rather type on till the correct entry is the only one available.

this is done by:

set completeopt=longest,menuone 

problem: now i have to manually press to select the entry.

there is a mapping which simulates when the menu is open:

inoremap   pumvisible() ? '' : 
  \ '=pumvisible() ? "\Down>" : ""' 

inoremap   pumvisible() ? '' : 
  \ '=pumvisible() ? "\Down>" : ""' 

vim.wikia.com/wiki/VimTip1386

but it doesnt work for me. just does nothing. any idea?

(vim 7.2, win xp)

+1  A: 

Autocomplpop plugin: the completion menu is always visible with the first element highlighted.

It's not exactly what you want, but you can type until only one item is visible in the list then simply press enter to insert it.

redacted