Hi,
--------message d'origine --------
De: "Christian Brabandt" <cblists@256bit.org>
Sujet: Re: Commandmode autocomplete
Date: Thu, 11 Oct 2012 08:37:27 +0200
> >> 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.
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.
> > 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.
> 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.
Have you even tried to verify your assertions without loading your
system/user vimrc ?
I guess you use the <Right> key in a mapping or something like that;
or maybe you should set t_kr...
> If you want to disable the function of <Right> for the wildmenu,
> see the help at :h 'wildmenu'
Thank you, but I know it, and I don't want to disable <Right> for
the wildmenu. I just say and insist: at least for me, <Right> works
as <Down> in commandmode completion when 'wildmenu' is off
(and no vimrc is loaded).
> regards,
> Christian
Cheers,
quidame
--
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
Thursday, October 11, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment