I'm interested in using exuberant-tags (ctags) in vim, but I use Vim for all sorts of projects so I need multiple tag files and I need vim to use the correct tag file on a per project basis.
Is there an easy way to manage this?
e.g. I could store tags in files like ~/.vim/tagfiles/-var-www-mywebsite.com then if I was editing a file in /var/www/mywebsite.com/foo/bar/baz.php it could try looking for
~/.vim/tagfiles/-var-www-mywebsite.com-foo-bar
then
~/.vim/tagfiles/-var-www-mywebsite.com-foo
then
~/.vim/tagfiles/-var-www-mywebsite.com
until it finds a match? But I don't want to reinvent the wheel and spending hours with vimscript if someone's already done it, as I suspect it's a common requirement?