ich suche nach einer möglichkeit bei der vim (7.2) omnicompletion einfach weiterzu tippen bis es nurnoch eine auswahl gibt.
da funktioniert auch mit:
Code: Alles auswählen
set completeopt=longest,menuone
ich muss dann also noch mal <Down> drücken und dann <CR>.
hier ist ein tipp der genau das machen soll was ich will:
funktioniert aber nicht...these two mappings are probably the most rare, yet most valuable:In the above mappings, the first will make Ctrl-n work the way it normally does; however, when the menu appears, the "<Down>" key will be simulated. What this accomplishes is it keeps a menu item always highlighted. This way you can keep typing characters to narrow the matches, and the nearest match will be selected so that you can hit Enter at any time to insert it.Code: Alles auswählen
inoremap <expr> <C-n> pumvisible() ? '<C-n>' : \ '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>' inoremap <expr> <M-,> pumvisible() ? '<C-n>' : \ '<C-x><C-o><C-n><C-p><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
http://vim.wikia.com/wiki/VimTip1386
jemand ne idee?