Vim Recall繁體中文

Equivalent to # at the mouse click position

<S-RightMouse>

Example

Normal 0 / 1
red two red
Cursor on line 1, column 5

Equivalent to # at the mouse click position.

Prepared search click

Click
line 1, column 10
Options
mouse=a · mousemodel=extend · wrapscan on
Before & after
Before
red two red
Cursor on line 1, column 5

Prepared search click

Click
line 1, column 10
Options
mouse=a · mousemodel=extend · wrapscan on
After
red two red
Cursor on line 1, column 1

Prepared search click

Click
line 1, column 10
Options
mouse=a · mousemodel=extend · wrapscan on

Search

Pattern
\<red\>

ILLUSTRATION. mouse=a, mousemodel=extend, selectmode empty, scrolloff=0; terminal/GUI mouse events reach Vim. Coordinates are one-based buffer line and column. The buffer has two red words; the shifted click performs * or # from the clicked word.

Details & Vim help

Equivalent to # at the mouse click position. 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.