recently looking at an open source project, I suddenly discovered that there is no convenient tool to look at the open source code on Linux. Previously, with VS2010 integrated development Environment on Windows, shortcut keys for any function directly jump to the function definition. can now be helpless on Linux. Then, began to find information on the Internet, only to know that there are ctags artifacts on Linux, alas. Sad, in the end is a rookie, even these commonly used tools do not know, still need to work Ah! Here is the first record of learning ...
I. Plugin INTRODUCTION
most Unix systems have ctags, which works well with vim. Ctags tool is mainly used to traverse the source code files generated tags files, these tags files can be the editor to quickly locate locate source code symbol (TAG/SYMBOL).
Two. Usage
1. Installation
Apt-get Install Ctags
You can also go to the official website to download the source installation.
1. Role
2.1 Generating Tag files tags
In the current directory $ctags-R.
-R indicates recursive, recursively, generates a label file for the file in the current directory and its subdirectories: represents the current directory
The objects contained in the tags file
Vim+ctags+cscope Tools