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

when I gf on this string

        http://somehost.com/includes/some.file

or by defining a new command (say wf)?


Thanks.




Ben K.
Developer
http://benix.tamu.edu

Reply via email to