On 2012-05-17, hilal Adam wrote:
> 
> I am bias towards VIM when it comes to editors for doing development work
> (mainly C). But I have this problem regarding cross referencing. I use ctags
> which only provides half of the equation when I search for definitions of
> functions and variables. However, I haven't been able to find a useful way for
> doing cross referencing. For example in cases where I want find where a
> function is used, etc. I have come across cscope which is outdated and lacks
> proper documentation for how to install and run. Could anyone help with
> pointing to the right direction.
> I appreciate any help in this respect.

I don't understand how cscope "lacks proper documentation".  From
within Vim there is ":help cscope" and from the shell, "man cscope".
A quick search of the web finds these:

    http://cscope.sourceforge.net/cscope_vim_tutorial.html
    http://www.vim.org/scripts/script.php?script_id=51
    http://vim.wikia.com/wiki/Cscope
    http://hthreads.csce.uark.edu/wiki/Navigating_with_Cscope

It is almost as easy to use as ctags.  At the top-level of a source
tree, execute "cscope -R -b".  From within Vim, execute ":cs add
cscope.out".

Granted, I use a plugin developed by a coworker and myself to allow
cscope's search features to be accessed by simple mappings, but the
references above also describe some plugins and mappings you will
probably find useful.

I couldn't live without cscope.  I work on huge embedded systems
written in C and I seldom have to think about where things are
located--I just search for symbols using cscope and Vim's quickfix
list.

Regards,
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

Reply via email to