Monday, August 6, 2012

wildmenu: take marked item without executing the command

Hi all,

since recently i use the wildmenu for completion in command-mode. And
i'm quite happy with it. Unfortunately i can't select an item, so that
the wildmenu closes and i can start a new completion upon the previous
one in succession.

For example i want to open a file in '~/.vim/' . So far, i
usually proceed in the following way (with # enclosed items are
selected).

:e .vi<tab>

#.vim/# .vimrc
:e .vim<c-n>

#.vim/# .vimrc
:e .vim/

At this point i want wildmenu to close and proceed with
pressing the tabulator key to make a further completion. By intuition i
press <cr> to achieve this, but this executes the command.

I feel certain that a key exists which close the wildmenu without
discarding the selection. Unfortunately no such key is mentioned in
:h 'wildmenu' . An awkward workaround for me is pressing
<space><bs><tab> for the next completion.


Maybe some of you experts can point me in the right direction!?

With best regards

Johannes

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: