1 sudo apt-get install cscope;

2 执行命令cscope -Rbq,生成cscope.out等文件;

3 /etc/vim/vimrc中添加一行,cs add /home/os/cscope.out;

4 vim打开文件,:cscope -h查看