Vim Recall繁體中文

Begin Replace mode

:startreplace

Example

Normal 0 / 4
cat
Cursor on line 1, column 1

Begin Replace mode.

Editing state

Mode
Normal
Cursor
on c
Before & after
Before
cat
Cursor on line 1, column 1

Editing state

Mode
Normal
Cursor
on c
After
Xat
Cursor on line 1, column 1

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