[Vim/Cscope] CSCOPE_DB
This commit is contained in:
parent
fd07fa2c77
commit
5c56d6ee41
3
.vimrc
3
.vimrc
@ -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
|
||||
|
@ -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
3
HOWTO_CSCOPEDB
Normal 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
|
Loading…
Reference in New Issue
Block a user