On 2015-12-26, Tony Mechelynck wrote:
> On Sat, Dec 26, 2015 at 5:11 PM, Julien Pivard wrote:
> >
> > I started Vim start with vim -u NONE (to be sure it's a bug, and
> > not caused by my config) and set nocompatible, set wildmenu
> >
> > When press tab after typed :!/ suggestion are duplicate like this :
> >
> > and this :
> >
> > But no probleme in insert mode with <CTRL-X><CTRL-F>
> >
> 
> I confirm the duplication. Here on Vim for Linux64, I see the
> following on the wildmenu line:
> 
> :/<Tab>
> bin/ boot/ dev/ etc/ home/ lib/ lib64/ lost+found/ mnt/ opt/ proc/
> root/ run/ sbin/ selinux/ srv/ sys/ tmp/ usr/ var/ bin/ boot/ dev/
> etc/ home/ lib/ lib64/ lost+found/ mnt/ opt/ proc/ root/ run/ sbin/
> selinux/ srv/ sys/ tmp/ usr/ var/
> 
> The default 'wildmode' in 'nocompatible' mode is full.
> 
> With my usual vimrc which sets 'wildmode' to longest:full,full I see the same.
> 
> In another case I see only partial duplication:
> 
> :!sea<Tab>
> seamonkey seahorse seahorse-demon seahorse-tool seahorse
> seahorse-demon seahorse-tool
> 
> while in another case I even see triplication:
> :!fir<Tab>
> firefox firefox firefox
> 
> I think I have the explanation:
> 
> On this system, most programs live in /usr/bin for which /usr/bin/X11
> is a symlink; both of these directories are in the $PATH.
> SeaMonkey is installed only in /usr/local/bin which is not duplicated
> in the $PATH
> For Firefox I have both the Mozilla Nightly version in /usr/local/bin
> and the openSUSE Leap version in /usr/bin
> 
> IOW, Vim does completion for the :! command by means of the $PATH and
> if a single program name exists at several different places in the
> $PATH it is listed as many times as it is found.
> 
> I think it's normal.

I don't think PATH or symlinks have anything to do with it.  The
behavior certainly doesn't seem normal.  Using Vim 7.4.942 on Fedora
14:

  $ PATH= /usr/local/bin/vim -N -u NONE -c 'set wildmode=list'
  :!/<Tab>
  bin/         lib64/       selinux/     boot/        lost+found/  srv/
  boot/        lost+found/  srv/         cgroup/      media/       sys/
  cgroup/      media/       sys/         data/        mnt/         tmp/
  data/        mnt/         tmp/         dev/         opt/         usr/
  dev/         opt/         usr/         etc/         proc/        var/
  etc/         proc/        var/         home/        root/        win/
  home/        root/        win/         lib/         sbin/
  lib/         sbin/        bin/         lib64/       selinux/
  :!/

None of those directories are symlinks.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui