- 论坛徽章:
- 0
|
请各位大侠帮忙给看看:
需要手动运行:cs add cscope.out 才能正常使用
.vimrc中 cscope 相关配置如下:
"Settings for cscope
if has("cscope")
if filereadable("/usr/bin/cscope")
set csprg=/usr/bin/cscope " specify which cscope to be used
elseif filereadable("/usr/local/bin/cscope")
set csprg=/usr/local/bin/cscope " specify which cscope to be used
endif
set csto=0 " 0 means search cscope database first, then search tags file
set cst " use |:cstag|(:cs find g), not default :tag
set nocsverb " do not show if database is added successful
" add any database in current directory
if filereadable("cscope.out")
cscope add cscope.out " add cscope database
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cscope add $CSCOPE_DB
endif
set csverb " show if database is added successful
endif
|
|