Add the contents of a register or object under the cursor literally
Ctrl-r Ctrl-r {regname}
Example
Command-line 0 / 1Command-line 1 / 1one two
three four
five six
keepCursor on line 1, column 1one two
three four
five six
keepCursor on line 1, column 1Add the contents of a register or object under the cursor literally.
Vim registers
aRegister a- Characterwise
saved
Command line
- Prompt
:echo 'red blue'- Insertion column
16- Editing mode
Insert- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
Command line open · edit or submit
Vim registers
aRegister a- Characterwise
saved
Command line
- Prompt
:echo 'red blue'saved- Insertion column
21- Editing mode
Insert- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
Before & after
one two
three four
five six
keepCursor on line 1, column 1Vim registers
aRegister a- Characterwise
saved
Command line
- Prompt
:echo 'red blue'- Insertion column
16- Editing mode
Insert- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
one two
three four
five six
keepCursor on line 1, column 1Vim registers
aRegister a- Characterwise
saved
Command line
- Prompt
:echo 'red blue'saved- Insertion column
21- Editing mode
Insert- Completion menu
inactive
Vim messages
Empty
- Last status message
- Last warning
Start in Command-line mode. A literal :echo prompt is already open. This key edits, moves within, cancels, or submits that prompt; the text buffer is separate. The placeholder is register a, prepared with the characterwise text saved; its contents are displayed beside the prompt.
Details & Vim help
Example replayed in Vim
Add the contents of a register or object under the cursor literally. 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.