Everytime after load a cscope.out in vim , I need to change vim's "pwd" to the same directory as cscope.out file is under ,which might due to that cscope use relative path when generating tag file . So if there is a way to force cscope to use absolute path in its tag file - cscope.out, then it will be regardless of whether the pwd of your vim session is the same as the directory that cscope.out file is under .
+1
A:
When importing cscope.out, you can supply the prefix, i.e.
:cscope add /path/to/cscope.out /path/to/src/code
Then your searches will turn up like:
Cscope Tag: foobar
# line filename / context / line
1 21 /path/to/src/code/foobar_file.c
Aaron H.
2010-07-07 17:14:33