On 2013-06-03, A. S. Budden wrote:
> On 1 June 2013 15:13, ChengYi Lin wrote:
> > give cscope full path
> > $ find `pwd` | cscope -i -
> 
> This indeed makes it work.  That was what I was trying to show in my
> example code.

But that is solving a different problem than the one described in
the forwarded message.

The forwarded message describes a problem with using relative path
names for the name of the database file.  The command above, using
find, addresses the problem of relative path names _in_ the database
file.

> However, I think this should be done by Vim automatically when
> using the "cs add" command.

The ":cs add" command does provide a solution for the problem of
relative path names _in_ the database file.  That's what the
pre-path argument is for.

However, the ":cs add" command can't very well know what that
argument should be "automatically" because it is the path to the
directory in which cscope was run when it built the database, which
is not necessarily the directory in which vim is being run when the
":cs add" command is executed.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui