Monday, October 31, 2011

Re: Cannot use gf to go to file, path seems set

On 2011-11-01, Dotan Cohen wrote:
> I have this line in some PHP code:
> require_once(DIR . '/includes/functions_misc.php');
>
> DIR is actually /var/www/html/forum/
> I have set my path to be the include-all monster:
> :set path=.,/var/www/html,/var/www/html/forum,/var/www/html/forum/includes
>
> However, gf insists that it cannot find the file. I did try each value
> of the path my itself, still no good. What might I be doing wrong? VIM
> 7.x, CentOS 5.x.

The problem is that that last segment of the path name,
/includes/functions_misc.php, begins with a "/" which Vim
understands to mean the beginning of an absolute path. See

:help 'path'

Regards,
Gary

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

No comments: