my file of vim_make_lookuptag_cstag_tags , for making the ctags, lookupfile tags, and cs tags;
#!/bin/sh---
# generate tag file for lookupfile plugin--------------------------------------------------------------------------------------------------------------
#" 映射LookupFile为,lk nmap <silent> <leader>lk :LUTags<cr> 默认为 F5
#" "映射LUBufs为,ll nmap <silent> <leader>ll :LUBufs<cr>
#" "映射LUWalk为,lw nmap <silent> <leader>lw :LUWalk<cr>
echo -e "!_TAG_FILE_SORTED\t2\t/2=foldcase/" > filenametags--------------------------------------------------------------------------------------------
find . -not -regex '.*\.\(png\|gif\|o\|so\|d\|linkmap\|dd\|linkmap\|js\|htm\|html\)' ! -path "*svn*" -type f -printf "%f\t%p\t1\n" | sort -f>> filenametags
#OmniCppComplete 是针对c++的补全 在当前路径下,对当前路径递归生成tags文 件,
#:tag main 你会看到vim打开了main.c文件,并把光标定位到main 上
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
#命令会生成三个文件:cscope.out, cscope.in.out, cscope.po.out。
#cs find s RegisterEventReceiver 回车后,会列出一列文件列表,然后输入某个文件的数字索引,然后回车可以打开文件,并将光标至于函数处
#cs find f TContentDirectoryService.cpp 可以直接打开文件(如果仅仅有一个文 件)
#* s: 查找C语言符号,即查找函数名、宏、枚举值等出现的地 方
#* g: 查找函数、宏、枚举等定义的位置,类似ctags所提供的功 能
#* d: 查找本函数调用的函 数
#* c: 查找调用本函数的函 数
#* t: 查找指定的字符 串
#* e: 查找egrep模式,相当于egrep功能,但查找速度快多 了
#* f: 查找并打开文件,类似vim的find功 能
#* i: 查找包含本文件的文 件
find . -name '*.cpp' -or -name "*.c" -or -name '*.h' -or -name '*.cc'-or -name '*.hpp' | sort -f > cscope.files
cscope -bq-