When the files in the other directory are related and often change together with the current directory hierarchy, I'd write a custom :Ctags
command that supplies the other path to the :!ctags
call.
If the other files are unrelated, and rarely update (as based on your comments seems to be the case), I'd run ctags
there separately and include them via
:set tags+=/path/to/other/dir/tags
NOTE: Add the tag filename at the end, else there will be "tag not found" error. By default the name is tags
but it could be renamed with -f
option as below.
ctags -f my_tags -R
:set tags+=/path/to/other/dir/my_tags
$ man ctags
before asking? If so, did you try something? If so, what worked? What failed? If not, do you at least have a theory? – Sublet