[Vim/Cscope] CSCOPE_DB

This commit is contained in:
Mathieu Maret 2010-03-04 10:10:31 +01:00
parent fd07fa2c77
commit 5c56d6ee41
3 changed files with 6 additions and 2 deletions

3
.vimrc
View File

@ -272,8 +272,9 @@ if has("cscope")
" add any cscope database in current directory
if filereadable("cscope.out")
cscope add cscope.out
endif
" add the database pointed by environment variable
elseif $CSCOPE_DB != ""
if $CSCOPE_DB != ""
if filereadable($CSCOPE_DB)
cscope add $CSCOPE_DB
endif

View File

@ -21,7 +21,7 @@ export PATH=$OEBASE/bitbake/bin:$PATH
# Scratchbox
export PATH=/home/mathieu/bin/sb2/bin:$PATH
export CSCOPE_DB=$HOME/cscope/cscope.out
#emacsAndViKeys
#bindkey -v
#bindkey "^P" vi-up-line-or-history

3
HOWTO_CSCOPEDB Normal file
View File

@ -0,0 +1,3 @@
find /my/project/dir -name '*.c' -o -name '*.h' > /foo/cscope.files
cscope -i /foo/cscope.files
CSCOPE_DB=/foo/cscope.out; export CSCOPE_DB