Navigate to highlighted tag
Ctrl-]
Example
Visual 0 / 1Normal 1 / 1call print
keepCursor on line 1, column 10 · Character selectionvoid print(void) {
return;
}Cursor on line 1, column 1Navigate to highlighted tag.
Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- example.c Active
Active source
Leave Visual mode and jump to the first tag for print. The return position is the t at the active end of the selection.
Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- library.c Active
First tag match
Tag stack
- Return location
example.c:1 column 10
Before & after
call print
keepCursor on line 1, column 10 · Character selectionPrepared tag index
library.c:1alternate.c:1
Illustrated windows
- example.c Active
Active source
void print(void) {
return;
}Cursor on line 1, column 1Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- library.c Active
First tag match
Tag stack
- Return location
example.c:1 column 10
ILLUSTRATION. In unmodified example.c, use selection=inclusive and select print characterwise from p to t. Enable tagstack and turn off winfixbuf. The first matching tag in the prepared lookup is print at numeric line address 1 of readable library.c.
Details & Vim help
Navigate to highlighted tag. Use in Visual mode with a selection contained in one line. Vim uses the selected text as the tag name. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.