Tips for using Vim to view Code

Source: Internet
Author: User

First download the Ctags installation.

To http://ctags.sourceforge.net/ download ctags source code ctags-5.6.tar.gz

TAR-XVF ctags-5.8.tar.gz

CD ctags-5.8

./configure

Make install


In the user's home directory, under the Vim profile. VIMRC, add "Set tags+= Project Catalog" To save, if there is no. VIMRC configuration file, it is created from.

Then, under the corresponding project directory, use the Ctags-r command. This will be done, you can use the fast.

Note: If the project directory is a Linux kernel source code, you should run make arch=x86 tags before running ctags-r, which avoids the code impact of other schemas, such as the ARM architecture


CTRL + "]"----> Jump to Definition

CTRL + "T"----> can be returned to the original place. Even if the user uses n times "CTRL +" to find n variables, pressing n "Ctrl+t" also returns to the original open file, which is returned as the original path.



This article is from the "Instant over" blog, please be sure to keep this source http://misliang.blog.51cto.com/6973084/1699252

Tips for using Vim to view Code

Related Article

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.