cscope Vim plugin: uses tags from multiple repositories?

145 Views Asked by At

I'm currently using this Vim plugin for cscope. It works great, except... it appears to be using tags from multiple directories.

I have two repo's: projectA and projectB. ProjectB has projectA added as a submodule (but it does not have the cscope.out file in it, because it is not added to the repo).

When I put my cursor in thisfunction() in a file in the folder of projectA and press ctlr-G to jump to it, it gives me two options:

1   src/myfile.c <<thisfunction>>
2   /home/myname/projectB/submodule/src/myfile.c <<thisfunction>>

I have no clue how this is possible. They are in two entirely different folders. Does Vim keep a global cache of cscope files it has found maybe?

How can I fix this?

0

There are 0 best solutions below