Wednesday, October 10, 2012

Re: Commandmode autocomplete

On Wed, October 10, 2012 23:33, bilibop project wrote:
>> Not "any of". Here at least, Right-arrow works like Tab with 'wildmenu'
>> on, or does nothing with 'wildmenu' off.
>
> hmm... *does nothing with 'wildmenu' off* and surely something else
> different
> from the defaults. Try this and see:
> vim -Nu NONE

What you mean with something different from the the defaults?
with :set nowildmenu using the right-arrow does *not* complete anything.
And when it is set, <Right> moves to the next match, as given in the
documentation.

> Sometimes, refer to the default settings can help much more than give
> incomplete
> - and useless - information. Can you say me what, in your settings, can
> disable the
> Right-arrow behaviour for commandmode completion ?

It is not useless, but should be the default, according to the
documentation.
It could be, that your terminal cannot correctly distinguish <Right> from
<Down>, to verify this, enter :<Ctrl>V and see what keycodes are given
when pressing <Down> and <Right> (e.g. for my terminal it is ^[OC for
<Right> and ^[OB for <Down>), but I am only guessing, because I don't know
nothing about your environment.

> It seems it is not your
> 'wildmode' setting, because
> vim -Nu NONE -c "set wildmode=longest:full,full"
> gives me the same result: Right-arrow works as Down-arrow.

It does not here and works as described in the documentation.

If you want to disable the function of <Right> for the wildmenu,
see the help at :h 'wildmenu'

regards,
Christian

--
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: