Vim Recall繁體中文

Move the cursor at mouse click

<LeftMouse>

Example

Insert 0 / 1
one two
three four
Insertion point on line 1, column 1

Move the cursor at mouse click.

Prepared mouse event

Click
line 2, column 7 (f in four)
Options
mouse=a · mousemodel=extend · selectmode empty
Before & after
Before
one two
three four
Insertion point on line 1, column 1

Prepared mouse event

Click
line 2, column 7 (f in four)
Options
mouse=a · mousemodel=extend · selectmode empty
After
one two
three four
Insertion point on line 2, column 7

Prepared 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.