Henrik Öhman schrieb:
> Scenario:
>
> mkdir src && mkdir src/sub
> touch src/foo.c src/foo.h src/sub/foo.c src/sub/foo.h
> vim -u NONE -N -c "args src/**/*.[ch]" -c "set wildmode=longest"
>
> On Linux (tested with 7.1.138) and Cygwin (tested with 7.2), these
> commands complete successfully:
>
> :b src<Tab>s<Tab>      => :b src/sub/foo.
> :b src/s<Tab>          => :b src/sub/foo.
> :b src/sub/foo<Tab>    => :b src/sub/foo.

On Win32: can achieve this with
    :set shellslash

Though backslashes must still be avoided.

> just like one would expect. On Windows (tested with gVim/Vim 7.2.77),
> they all fail to complete the longest match
>
> :b src<Tab>s<Tab>      => :b src\s
> :b src\sub<Tab>        => :b src\sub
> :b src/sub<Tab>        => :b src/sub
> :b src\sub\foo<Tab>    => :b src\sub\foo
>
> I have seen this behaviour since at least the last patches of 7.1, but
> I thought it was an oddity rather than a bug, until I started
> investigating the behaviour on Linux.
>
> Can someone confirm this behaviour on Windows?

Confirmed.  (not caring about how wildmode=longest is supposed to work).
Here gVim 7.2.84

> Henrik.

-- 
Andy


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui