Equivalent to <C-RightMouse>
g<RightMouse>
Example
Normal 0 / 1Normal 1 / 1void print(void) {
return;
}Cursor on line 1, column 1call print
keepCursor on line 1, column 6Equivalent to <C-RightMouse>.
Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- library.c Active
First tag match
Tag stack
- Return location
example.c:1 column 6- Current index
After the only entry
Move back one tag-stack entry and return to print in example.c.
Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- example.c Active
Active source
Tag stack
- Return location
example.c:1 column 6- Current index
On the retained entry
Before & after
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 6- Current index
After the only entry
call print
keepCursor on line 1, column 6Prepared tag index
library.c:1alternate.c:1
Illustrated windows
- example.c Active
Active source
Tag stack
- Return location
example.c:1 column 6- Current index
On the retained entry
ILLUSTRATION. The active window shows unmodified library.c with winfixbuf off. Its prepared tag stack holds one return entry at example.c line 1, column 6, with the index after that entry. Assume mouse=a and a delivered Vim mouse event. Press g, then right-click. This acts like Ctrl-t and uses the stored return position.
Details & Vim help
Equivalent to <C-RightMouse>. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. Mouse support and terminal/GUI event handling must be available.