Relativize is a Vim plugin that converts the full path name to a relative one, specific to an index.html or tags file, enabling quick navigation within the project directory.
To use Relativize, you can open a long full path name from some error log and then run the script by typing ":Relativize tags". This should make the full path name relative to the tags file in the current project, assuming that such a file has been created in the past. This features several benefits, including making tag jumps work more smoothly and allowing you to access relative include paths via gf.
Not only can Relativize be helpful for navigating within your current project, but it could also come in handy for other landmark files on your system, such as index.html, tags, and README files. In the example given above, using the actual file name as the argument will set the working directory to the module directory.
One thing to note is that Relativize's function will prioritize the deepest tags file, so keep that in mind when using the script. As for requirements, all you need is Vim.
Installing Relativize is also easy. You can simply add the relativize.vim file into your plugins directory, and you're good to go. Overall, Relativize could be a helpful tool for Vim users who want to streamline their workflow and simplify their file navigation in larger projects.
Version 0.1: N/A