2009/6/8 Tony Mechelynck <[email protected]>: > > I tried to understand how to use cscope (with the Vim source as a set of > sources to apply it to). Bram, correct me if I'm wrong. > > The following assumes $VIMSRC has been set (e.g. in the vimrc) to the > top-level directory of the Vim source & runtime distribution (on my > system, currently ~/.build/vim/vim72 ) > > - First of all, build the database (done once). > > :new > :lcd $VIMSRC/src > :!cscope -bv ./*.[ch] ./perl.xs auto/*.h auto/pathdef.c
I execute cscope as: cscope -qbk ./*.[ch] ./perl.xs auto/*.h auto/pathdef.c proto/*.pro (note the header files proto/*.pro). In the cscope invocation -q allegedly makes the database lookups faster, and -k is responsible for not using the system header files (i.e. the ones lying in /usr/include) -- Cheers, Lech --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
