VIM中cscope和tags数据库的添加

临时创建的cscope和ctags数据库添加

vim的命令行模式下:cs add /path/to/cscope.out 以及 set tags=/path/to/some_tags.

 

两个数据库的产生方法:

ctags -R -f tags_name --c-kinds=+px --c++-kinds=+px --fields=+iafksS --extra=+qf (--exclude="排除1" --exclude="排除2")  源码路径

find 源码路径 \( -name "*.[ch]" -o -name "*.cpp" \) ! \( -path "*/排除1/*" -o -path "*/排除2/*" \) > cscope.files
cscope -bq

posted on 2015-03-25 08:57  eric.geoffrey  阅读(535)  评论(0编辑  收藏  举报

导航