Skip to content

Instantly share code, notes, and snippets.

@bleader
Created February 22, 2013 14:54
Show Gist options
  • Save bleader/5013985 to your computer and use it in GitHub Desktop.
Save bleader/5013985 to your computer and use it in GitHub Desktop.
if has("cscope") && filereadable("/usr/bin/cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
fu CscopeReload()
cscope kill 0
!cscope -R -b
cscope add cscope.out
endf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment