How to reset the completion in wildmenu?
In vim when you complete something (in insert mode) you can "reset" the completion to what you initially typed with CTRL-E. Howeve开发者_开发问答r , in wildmenu that doesn't work. Is there a way to do it ?
Does selecting the first completion and then hitting left do what you want?
It seems that Tab (wildchar) and a direction allows you to go to the beginning or end of the completion list. Hit Tab Left to go to the beginning or Tab Right to select the end. So your shortcut would be Tab Right Left (select the first item and then go back one).
Unfortunately, cmap <C-e> <Tab><Right><Left>
just inserts a tab.
My wild settings:
set wildmenu
set wildmode=longest:full
set wildchar=<Tab> " (default)
You are probably interested in the 'wildmode'
setting. Probably you want :
set wildmode=list:longest,full
See :help 'wildmode'
for more explanations. Also have a look at :help cmdline-completion
for more insight.
精彩评论