sponsor Vim development Vim logo Vim Book Ad

loadtags : Load the correct set of tags for the file you're editing

 script karma  Rating 13/4, Downloaded by 558  Comments, bugs, improvements  Vim wiki

created by
Miroslav Tynovsky
 
script type
utility
 
description
When you open a file, it searches for tags files in all ancestor directories and loads them. This is useful when you work on several projects and have different set of tags for each of them.

Let's say that you open file /home/user/projects/my_proj/lib/hello.pm. Loadtags plugin looks for files

/home/user/projects/my_proj/lib/tags,
/home/user/projects/my_proj/tags,
/home/user/projects/tags,
/home/user/tags,
/home/tags,
/tags

and calls setlocal tags+= on those that exist.
 
install details
Store the loadtags.vim into your ~/.vim/plugin directory.
Create tags file for every your project and store it in the project's root directory (see :help tags).

I don't know if it works on Windows.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
loadtags.vim 0.1 2010-02-24 7.0 Miroslav Tynovsky Initial upload
ip used for rating: 3.14.6.194

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github