使用 cscope 的时候总是提示没有连接
vim吧
全部回复
仅看楼主
level 1
请各位大侠帮忙给看看:
需要手动运行: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
2016年07月11日 09点07分 1
level 1
自己顶上去,大侠帮帮忙啊
2016年07月12日 04点07分 2
1