VIM's tag system

Source: Internet
Author: User

Tag identifiers are stored in files generated by Ctags and other programs.

: Tag and <C-]> command jumps to the point where the cursor is located (if the cursor is no longer on the symbol, the first symbol on the right)

Also g+ left mouse button and <c-left mouse button >

<c-t>,g+ right mouse button, <c-right mouse button > can jump to previous item

:[count]{ident}:count指的是第几个匹配的标识符,叹号说明

: Tags shows the current tag stack,> symbol indicating the next to jump to the

: [Count]pop jumps to an earlier item (bottom of the stack)

: [Count]tag jumps to the next item (top of the stack)

<C-o> is jumping to the last jumplist position.

If there are multiple tags matching, ctags will not automatically prompt to choose which, to use: Tselect list,: Stselect will pop up a split window to prompt (this is terrible)

: TN to next match: TP to previous match

G] can be used: TS command

: Tlast and: TFirst jumps to the last and first label respectively

: Tjump If there is more than one match, the matching window is displayed, otherwise it goes directly to the definition

VIM's tag system

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.