Vim Recall繁體中文

Switch insert/overstrike mode

<Insert>

Example

Command-line 0 / 2

Switch insert/overstrike mode.

Command line

Prompt
:echo 'red blue'
Insertion column
7
Editing mode
Insert
Completion menu
inactive

Vim messages

Empty
Last status message
Last warning
Before & after

Before

Command line

Prompt
:echo 'red blue'
Insertion column
7
Editing mode
Insert
Completion menu
inactive

Vim messages

Empty
Last status message
Last warning

After

Command line

Prompt
:echo 'Xed blue'
Insertion column
8
Editing mode
Overstrike
Completion menu
inactive

Vim messages

Empty
Last status message
Last warning

Start in Command-line mode. The prompt cursor starts before r in red. Insert toggles command-line overstrike mode; typing X then replaces r, producing Xed without adding a character.

Sample buffer
one two
three four
five six
keep
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Switch insert/overstrike mode. 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.