* On Tue, Apr 19, 2011 at 08:18:07PM -0700, pansz <[email protected]> wrote:
By default, vim opens all file of ctags with directory relative to the tags file. This behaviour can be controlled by 'tagrelative' option.But for cscope, vim does not open file relative to directory where cscope.out lies, instead, it uses CWD. Build cscope.out with absolute path can solve some problem but that really isn't ideal: When you do :cs find, quickfix window filled with file names and occurrences. The file names are usually too long with absolute path and it often is better to show them with relative path (may be even better to show them with abbreviated path or remove the largest-common-part of path). Is it possible to give cscope first-class citizenship like ctags, such as out-of-box support for option like 'tagrelative'?
I faced the same issue few days back. So I wrote the patch for
cscope (the one submitted to vim_dev), it introduces a boolean
variable called cscoperelative for that. The patch applies to vim
git master branch.
pgpyzcmGi6v69.pgp
Description: PGP signature
