Begin Virtual Replace mode
Example
Normal 0 / 4Command-line 1 / 4Virtual Replace 2 / 4Virtual Replace 3 / 4Normal 4 / 4catCursor on line 1, column 1catCursor on line 1, column 1catCursor on line 1, column 1XatCursor on line 1, column 2XatCursor on line 1, column 1Begin Virtual Replace mode.
Editing state
- Mode
Normal- Cursor
on c
Command entered · ready to apply
Editing state
- Mode
Command-line- Cursor
on c
Starts Virtual Replace after command processing completes. Subsequent X replaces c.
Editing state
- Mode
Virtual Replace- Cursor
on c
Apply one character in the newly entered mode.
Editing state
- Mode
Virtual Replace- Result
X replaces c
Return to Normal mode with cursor on X.
Editing state
- Mode
Normal- Cursor
on X
Before & after
catCursor on line 1, column 1Editing state
- Mode
Normal- Cursor
on c
XatCursor on line 1, column 1Editing state
- Mode
Normal- Cursor
on X
Subject: :startgreplace. Documentation-backed illustration; assumes modifiable single-width text; no ! suffix; command is executed directly, not through :normal; not replay-verified. Starts Virtual Replace after command processing completes. Subsequent X replaces c.
Details & Vim help
Begin Virtual Replace mode. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :startg[replace] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.