Begin Replace mode
Example
Normal 0 / 4Command-line 1 / 4Replace 2 / 4Replace 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 Replace mode.
Editing state
- Mode
Normal- Cursor
on c
Command entered · ready to apply
Editing state
- Mode
Command-line- Cursor
on c
Starts Replace after command processing completes. Subsequent X replaces c.
Editing state
- Mode
Replace- Cursor
on c
Apply one character in the newly entered mode.
Editing state
- Mode
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: :startreplace. Documentation-backed illustration; assumes modifiable single-width text; no ! suffix; command is executed directly, not through :normal; not replay-verified. Starts Replace after command processing completes. Subsequent X replaces c.
Details & Vim help
Begin 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 :startr[eplace] 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.