在sublime中使用vim+ctags阅读源码
1.首先安装ctag
- 在sublime中安装ctag的方式, ctrl+shift+p, 找到并点击package control install, 然后输入ctags来安装ctags
- 下载ctag58, 解压并添加到系统变量中
百度网盘链接:https://pan.baidu.com/s/1HgzcK_Q1K0BAZtxYHLwddA
提取码:hdeg
2.打开sublime, 点击菜单栏的Preference->Settings, 而后出现Preference.sublime-settings -- User, 在其中编辑如下:
{
"color_scheme": "Packages/Github Color Theme/GitHub.tmTheme",
"font_size": 15,
"ignored_packages":
[
],
"theme": "Default.sublime-theme",
"vintage_start_in_command_mode": true
}
3.设置快捷键
-当安装完ctags后, 在添加的源码工程目录上单击右键, 再点击CTags: Rebuild Tags, 产生工程的tag文件
-查询原有ctags的快捷键 Preference->Package Settings->CTags->Key Bindings - Default
-根据原有快捷键创建新的适合自己的快捷键 Preference->Package Settings->CTags->Key Bindings - User
[
{
"command": "navigate_to_definition",
"keys": ["f", "f"]
},
{
"command": "jump_prev",
"keys": ["f", "b"]
},
]
---------------------------------------------
Study needs record, record needs review
---------------------------------------------