Hi,

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

when I gf on this string

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

or by defining a new command (say wf)?


You may want to include look into the 'includeexpr' and 'include'
options. In Vim7, the 'include' option supports the "\zs" and "\ze"
regular expression atoms, so you can use this change the
matched text.

- Yegappan

Reply via email to