> if has("cscope")
> " Most often I find I need to recursively look at data
> " You cannot use (reports an error opening subdirs):
> " cscope -R *.sql
> " You must use:
> " cscope -R
> " But that only gets C/CPP files.
> " I have to do this:
> " find -name *.sql > cscope.files
> " or dir /s/b *.sql > cscope.files
> " cscope -b (create the cscope database)
> " cscope -C (queries this with case insensitivity)
> "
> " To open the same options in Vim:
> " cs add cscope.out . -C (for case insensitivity)
> "
> " For help on cscope and Vim:
> " :cs
> " :h cs
>
> let &cscopeprg = expand('$VIM\Tools\cscope.exe')
> " If 'csto' is set to zero, cscope database(s) are searched first,
> " followed " by tag file(s) if cscope did not return any matches.
> set cscopetagorder=0
> " set cscopetag
> set nocscopeverbose
> " determines how many components of a file's path to display
> set cscopepathcomp=3
> " Use the quickfix window for the cscope query
> set cscopequickfix=s-,c-,d-,i-,t-,e-
> " add any database in current directory
>
> if filereadable("cscope.out")
> " cscope -C (queries this with case insensitivity)
> exec 'cs add '.expand('%:p:h').'\cscope.out "" '
> " else add database pointed to by environment
> elseif $CSCOPE_DB != ""
> cs add $CSCOPE_DB
> endif
> set csverb
> endif
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.