I often have file log where there are several relative path to files. The paths are relative to the location of the filelog. My understanding is that I'm able to open the relative path if the CWD of vim contain that relative path. Is there a way to automatically compose the path for gf (goto file) to prepend the absolute path of the filelog opened to the relative path in it ?
Based on (my reading of) your description...
- You edit file
baz.logare relative paths like
quuxis a subdirectory of
If I've interpreted things correctly then
gf with your cursor over
quux/this.txt should open
this.txt without any other steps.
That is, unless you've modified
'path'. It should contain
. (dot meaning current directory). This setting influences how