Yegappan Lakshmanan wrote:
>>> Jason Aeschilman wrote:
>>> [ about the same tag being found in two tags files ]
>>
>> Wow, if I use a comma instead of a semi-colon in my "tags" option, it
will
>> stop searching through tags files if a match is found!  Before I had "set
>> tags=tags;/" (see vim tip 94) but now I have "set tags=tags,../tags" and
it
>> works.  I tried "set tags=tags,/" but it will not search the tags file in
>> the parent directory like it does when semi-colon is used.  Now I guess
if I
>> find myself more than one level deep, I'll have to set my "tags" option
to
>> "set tags=tags,../tags,../../tags,../../../tags" like I did once upon a
time
>> (before I came across the "tags;/" tip).
>>
>
> You can try using the following:
>
>     set tags=tags,tags;/
>
> This uses the tags file from the current directory or searches for the
> tags file from the current directory and in it's parent directories.
>
> or
>
>    set tags=tags,./tags;/
>
> This uses the tags file from the current directory or searches for the
> tags file from the directory of the current file and in it's parent
> directories.
>
> - Yegappan

In theory you'd think it would work that way, but with those two options,
vim still goes beyond the local tags file when a tag exists, just like "set
tags=tags;/".  At least that's the case with vim 6.3.054.

Reply via email to