在你的 ~/.vimrc 最后加入
if has("cscope")
set csprg=/usr/local/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
修改 /usr/local/bin/cscope 为实际 cscope 所在的路径
浏览代码时用 <CTRL> + ] 即可
另:kernel 代码在变,没有什么稳定的文档描述 kernel API 的,多读吧,
看看 Documentation/* 也很有帮助