当前位置:网站首页>[Development Miscellaneous][Editor][Code Reading]ctags & vim
[Development Miscellaneous][Editor][Code Reading]ctags & vim
2022-08-04 06:32:00 【xcy6666】
~/.ctags
ctags --recurse=yes --exclude=.git
generate tags for vim
- cadd config at ~/
$ cat ~/.tags
--recurse=yes
--exclude=.git
--exclude=BUILD
--exclude=.svn
--exclude=*.js
--exclude=vendor/*
--exclude=node_modules/*
--exclude=db/*
--exclude=log/*
--exclude=\*.min.\*
--exclude=\*.swp
--exclude=\*.bak
--exclude=\*.pyc
--exclude=\*.class
--exclude=\*.sln
--exclude=\*.csproj
--exclude=\*.csproj.user
--exclude=\*.cache
--exclude=\*.dll
--exclude=\*.pdb
- generate
$ cd ~/ws/proj/
$ ctags
# ctags --recurse=yes --exclude=.git
- start navigate tag
$ vim -t <main>
- list all tags
:tags
- jump to current
<tag>
definitionctrl + ]
- jump back to prev tag
ctrl + T
- select tag
:ts <tag>
- jump to next match
:tn
- jump to previou match
:tp
- jump directly
:tag main
, jump to main directly:tag /^get
, jump to lable match^get
, i.e. start with ‘get’
边栏推荐
猜你喜欢
随机推荐
Vmmem 进程(WSL2)消耗内存巨大
LeetCode_Nov_1st_Week
第二章 STA相关概念
LeetCode_Dec_2nd_Week
【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
JDBC第一学之进行数据库连接时出现The server time zone.....解决办法
动态内存管理-C语言
arm learning-1-development board
Implementation of CAS lock-free queue
第一章 绪论
Deep learning, "grain and grass" first--On the way to obtain data sets
LeetCode_Nov_3rd_Week
LeetCode_Nov_3rd_Week
结构体内存对齐-C语言
LeetCode_22_Apr_2nd_Week
LeetCode_Dec_3rd_Week
SFTP的用法
[CV-Learning] Linear Classifier (SVM Basics)
安装pyspider后运行pyspider all后遇到的问题
库函数的模拟实现-C语言