You need to run a script, e.g.
if filereadable("cscope.out")
cs add cscope.out
endif
if filereadable("../cscope.out")
cs add ../cscope.out
endif
etc :)
Winfred Lu wrote:
Hi all, Is there any way to configure .vimrc telling vim to search cscope.out file upward for the command: "cs add cscope.out"? Take ctags as an example, if writing "set tags=tags;", vim will search "tags" at current directory and all parent directories. It doesn't work to use "cs add cscope.out;" Best Regards, Winfred
