Equivalent to # at the mouse click position
<S-RightMouse>
Example
Normal 0 / 1Normal 1 / 1red two redCursor on line 1, column 5red two redCursor on line 1, column 1Equivalent to # at the mouse click position.
Prepared search click
- Click
line 1, column 10- Options
mouse=a · mousemodel=extend · wrapscan on
Search backward for red, the word at the click, and reach the preceding red.
Prepared search click
- Click
line 1, column 10- Options
mouse=a · mousemodel=extend · wrapscan on
Search
- Pattern
\<red\>
Before & after
red two redCursor on line 1, column 5Prepared search click
- Click
line 1, column 10- Options
mouse=a · mousemodel=extend · wrapscan on
red two redCursor on line 1, column 1Prepared 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.