On 2010-03-03, [email protected] wrote: > Hi, > > I am using cscope to search and the result is displayed in the > quickfix window. I want the result to list the full path of each > search result. Currently, it only displays part of the path and > causing a lot of problme for me. Does anyone know how to get the full > path for each result listed in the quickfix window after cscope > command?
When you create a cscope database (or symbol cross-reference) by just running "cscope -R" in some directory, the database will contain the names of files relative to that directory. That is a problem if vim is using a different current directory when it accesses the database. One solution is to give the name of the directory in which cscope was run to the ":cs add" command as the "pre-path" argument. See ":help E563". Another solution is to give cscope a list of the files it is to search when it builds its database, and use the full path names to the files in that list. You can easily build such a list using the find command. HTH, Gary -- You received this message from the "vim_use" 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
