Vim Recall繁體中文

Move the cursor at mouse click

<LeftMouse>

Example

Command-line 0 / 1

Move the cursor at mouse click.

Command line

Typed text
:echo 'red'
Insertion offset
11
Before & after

Before

Command line

Typed text
:echo 'red'
Insertion offset
11

After

Command line

Typed text
:echo 'red'
Insertion offset
7

Documentation-backed illustration. mouse input works in Command-line mode and the click targets command-line offset 7 (c_<LeftMouse>). Click immediately before r in the displayed command line to move its insertion point there. Primary help: c_<LeftMouse>.

Sample buffer
alpha
beta
gamma
Cursor on line 1, column 1
Details & Vim help

Move the cursor at mouse click. Use while editing a : command or / or ? search prompt; this edits or controls that prompt rather than running an Ex command. 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.