On Thu, Dec 19, 2013 at 6:31 PM, Aaron Bohannon <[email protected]> wrote:

> To reproduce (on standard *nix installation):
>
> (1) start vim in your home directory
> (2) :cd .vim
> (3) :echo findfile('.vimrc', expand('$USER') . ';')
>
> In vim 7.3, you get something like "/home/$USER/.vimrc".
>
> In vim 7.4, you get nothing.
>
> I can't understand why no one's reported this.  Am I the only person on
> the planet who uses this feature?  I don't know how to get by without it.
>

Have you by any chance set the 'cdpath' option to something other than its
default?  From todo.txt:

":cd" doesn't work when current directory path contains "**".
finddir() has the same problem.  (Yukihiro Nakadaira, 2012 Jan 10)
Requires a rewrite of the file_file_in_path code.

If your 'cdpath' contains a double-asterisk, findfile() might be inheriting
finddir()'s problem.

Just a guess.

-Manny

-- 
-- 
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/groups/opt_out.

Raspunde prin e-mail lui