vim_make_lookuptag_cstag_tags


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- 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值