码迷,mamicode.com
首页 > 系统相关 > 详细

vim使用记录

时间:2018-12-15 18:48:15      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:lang   vim   python   文件   lan   针对   attribute   内核   name   

1. 生成c、c++公共库标签文件

ctags -R -I THROW -I attribute_pure -I nonnull -I attribute --file-scope=yes --langmap=c:+.h --languages=c,c++ --links=yes --c-kinds=+p --c++-kinds=+p --fields=+iaS --extra=+q -f ~/.vim/tags/c.tag /usr/include/ --exclude=/usr/include/python2.7/


set tags+=~/.vim/tags/c.tag


ctags file_name1.c filename2.c filename3.h来产生ctags文件或者ctags .c .h

2. 内核:

ctags默认使用这个命令,--exclude要排除的文件,--links针对符号链接是否延伸,
ctags -R --links=yes --c-kinds=+p --fields=+iaSz --exclude=samples/ --exclude=tools/
在源码目录下通过命令make tags(也可使用:ctags -R)生成标签文件

cscope -Rbqk
k跳过/usr/include/*

vim使用记录

标签:lang   vim   python   文件   lan   针对   attribute   内核   name   

原文地址:http://blog.51cto.com/11325959/2330890

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!