Use of ctags

Source: Internet
Author: User
1. Source ProgramIn the upper-level directory, type the ctags command:
For example, in the/home/shipfi/code/qoe directory, type:
# Ctags-R
The above command will generate the tags file in the current directory.

2. After using Vim to open the file, type the following command:
: Set tags =/home/shipfi/code/qoe/tags

3. After the above settings, you can use Ctrl +] in the source file to redirect the relevant functions in the source file.

4. You can also put this sentence in ~ /. Vimrc, If you often program in this project.

5. If you want to jump back to the previous position, you can press Ctrl-t.

6. After the program is modified, the tags file cannot be automatically rebuilt. You must manually run the following command:
# Ctags-R

For details about taglist. And more vim operations, refer:
Http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.