> Luc,
>
> > I have a similar directories architecture. However I have had used the
> > following for quite some time now:    let g:alternateSearchPath =
> > 'reg:#/src/cpp#/inc#,reg:#/inc#/src/cpp#'
>
> Unfortunately my problem involves not knowing the subdirectory name ("cpp" in
> your example), so in your example search path I can't do the second regex (I
> could wildcard it out in the first regex though).
>
> Or more accurately I know that there are /many/ possible names for the
> subdirectory and this list grows with time, so adding them all to the search
> path is very hard.

Okay, I've just been tracing through a.vim again and found that with a wildcard 
in my search path the thing that fails is filereadable(), which doesn't seem to 
expand the * despite what the help system says.

By changing all instances of filereadable(...) to filereadble(expand(...)) in 
a.vim I can use simple wildcards, which nicely solves my problem!

Next question though, is the behaviour of filereadable not expanding the path a 
bug? ":help filename" says it should expand, but a simple ":echo 
filereadable("*")" fails on my machine. Is this dependant on some settings?

Regards,
Keffin.

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