Switch insert/overstrike mode
<Insert>
Example
Command-line 0 / 2Command-line 1 / 2Command-line 2 / 2Switch 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
Command entered · ready to apply
Command line
- Prompt
:echo 'red blue'- Insertion column
7- Editing mode
Overstrike- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
Command line open · edit or submit
Command line
- Prompt
:echo 'Xed blue'- Insertion column
8- Editing mode
Overstrike- 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.
one two
three four
five six
keepCursor on line 1, column 1Details & 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.