Thursday, October 11, 2012

Re: Commandmode autocomplete

[quoting repaired]
On Thu, October 11, 2012 15:31, bilibop project wrote:
>> Christian Brabandt wrote:
>> 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.
>
> The Vim default settings are obtained with:
> $ vim -Nu NONE
> or, for gvim:
> $ gvim -NU NONE
> according to the documentation (manpage); and not by just running vim
> loading a complex config file and then reset only one setting or another
> to its default value.

That didn't answer my question. Do you see something different then
the default:
when wildmenu is on:
<Right> moves to the next match
and when it is not set, it does not complete anything.
That is exactly what is mentioned 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.
>
> Can you quote me this part of the documentation ? I don't remember have
> read somewhere that the Right-arrow is disabled when default settings are
> applied, but just that 'wildmenu' gives it a specific behaviour.

,----[ :h 'wildmenu' ]-
| <Left> <Right> - select previous/next match (like CTRL-P/CTRL-N)
`----
,----[ :h c_<Right> ]-
| *c_<Right>* *c_Right*
| <Right> cursor right
`----

>
>> 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.
>
> xfce4-terminal, xterm and any VT (<Ctrl-Alt-Fn>) give me the same:
> ^[[B for <Down>
> ^[[C for <Right>
> And in any of them:
> 1. <Down> and <Right> work as expected when 'wildmenu' is on:
> <Right> works as <CTRL-P>
> <Down> move into a subdirectory or submenu.
> 2. <Down> and <Right> have the same behaviour when 'wildmenu'
> is off: as for <Down> when 'wildmenu' is on.
>
>> > 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.
>
> again, quote me this part of the documentation or point me to it.

see above.

> Have you even tried to verify your assertions without loading your
> system/user vimrc ?

Of course I have on Windows as on Linux.

> I guess you use the <Right> key in a mapping or something like that;
> or maybe you should set t_kr...

As I said, I used the default vim -u NONE -N

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: