Vim Recall繁體中文

Begin Virtual Replace mode

:startgreplace

Example

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

Begin Virtual 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: :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.