On Jun 8, 12:59 pm, heirloom <[email protected]> wrote:
> Vim tab auto-completion for buffer names doesn't work if files are on
> different directory levels. Steps to reproduce:
>
> (1) set wildmode=longest,list in vimrc
> (2) vim usa1.txt test/usa2.txt
> (3) type ":b u" in EX mode, then press TAB, it is expected to auto
> complete the word up to :b usa, which is the common header of two file
> names. But it just doesn't work.
>
> Any solutions? Thanks a lot!
>
> PS: if the above two files are placed on the SAME directory, it
> works!!!!!

There is no common string between usa1.txt and test/usa2.txt. The very
first character differs in both. I'm not actually able to tell at a
glance from the help what IS supposed to happen, but I'm fairly
certain it should not put in "usa" because that is not a common prefix
for both buffer names.

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

Reply via email to