临时创建的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