On 12/1/06, Ben K. <[EMAIL PROTECTED]> wrote:

Is there a way to make gf open "some.file" from this line?

        Include("/includes/some.file");

where the file is actually sitting under web server root, like

        /var/www/html/includes/some.file

I tried adding "/var/www/html" to the :set path but vim will not recognize
it. /var/www/html/; was the same. Basically I'm looking for a way to add
"prefixes".

On the same note, would it be possible to let gf open

        /var/www/html/includes/some.file

Try to add  /var/www/html/ into &path option, like
   set path+=/var/www/html
Also can be that leading '/' in "/includes/some.file" makes
vim believe this is absolute pathname. Try on
      Include("includes/some.file");

See :help gf

Yakov

Reply via email to