Relativize is a Vim script to quickly make a full path name relative to an index.html or tags file.
Version: 0.1Relativize is a Vim script to quickly make a full path name relative to an index.html or tags file.
Operating System: Linux
Project with a tags file example:
Open a long full path name from some error log
if you type :pwd you should get
assuming a tags file has been created in the current_project file in the past.
So hopefully this means tag jumps will work and relative include paths can be accessed via gf. This could also be useful for other landmark files on the system (eg. index.html, tags, README). In the above example using the actual file.ext as the argument will make the working directory the module directory.
The function will prioritise the deepest tags file.
add the relativize.vim into the plugins directory