Move the cursor at mouse click
<LeftMouse>
Example
Insert 0 / 1Insert 1 / 1one two
three fourInsertion point on line 1, column 1one two
three fourInsertion point on line 2, column 7Move the cursor at mouse click.
Prepared mouse event
- Click
line 2, column 7 (f in four)- Options
mouse=a · mousemodel=extend · selectmode empty
Click line 2, column 7 to place the cursor on four.
Prepared mouse event
- Click
line 2, column 7 (f in four)- Options
mouse=a · mousemodel=extend · selectmode empty
Before & after
one two
three fourInsertion point on line 1, column 1Prepared mouse event
- Click
line 2, column 7 (f in four)- Options
mouse=a · mousemodel=extend · selectmode empty
one two
three fourInsertion point on line 2, column 7Prepared mouse event
- Click
line 2, column 7 (f in four)- Options
mouse=a · mousemodel=extend · selectmode empty
ILLUSTRATION. mouse=a, mousemodel=extend, selectmode empty, scrolloff=0; terminal/GUI mouse events reach Vim. Coordinates are one-based buffer line and column.
Details & Vim help
Move the cursor at mouse click. Use in Insert 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.