cscope
安装
$ sudo apt install cscope生成数据库
$ make ARCH=arm cscope # 只生成arm的数据库
或
$ cscope -b -q -k -f cscope.out # 不建议使用,默认会生成所有arch的数据库查询
set cscopeprg=cscope
if filereadable("cscope.out")
cs add cscope.out
else
let cscope_file=findfile("cscope.out", ".;")
let cscope_pre=matchstr(cscope_file, ".*/")
if !empty(cscope_file) && filereadable(cscope_file)
exe "cs add" cscope_file cscope_pre
endif
endif
nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR> " Find function definition
nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR> " Find function callLast updated