Move the cursor at mouse click
<LeftMouse>
Example
Command-line 0 / 1Command-line 1 / 1Move the cursor at mouse click.
Command line
- Typed text
:echo 'red'- Insertion offset
11
Click immediately before r in the displayed command line to move its insertion point there.
Command line
- Typed text
:echo 'red'- Insertion offset
7
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>.
alpha
beta
gammaCursor on line 1, column 1Details & 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.