Vim is my favorite editor, when I open a php or python file in vim, the first command is:
set tags=../../../tags
or
set tags=../../tags
I think vim can do this automatically:
first search ./tags, if it is exists, set it, if not exists
search ../tags,if it is exists, set it, if not exists
search ../../tags,if it is exists, set it, if not exists
until it reaches the / or D: directory
However, I am not so familiar with the vim scripts. Any of your help will be appreciated!_
,
does not work on my vim. i used semicolonset tags=./tags;/
which works for me. – Seaport