Add contents of register in the text
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2red
blueCursor on line 1, column 1red
blueCursor on line 1, column 1red
saved
blueCursor on line 2, column 1Add contents of register in the text.
Vim registers
aRegister a- Linewise · ↵ marks a line break
saved↵
Command entered · ready to apply
Vim registers
aRegister a- Linewise · ↵ marks a line break
saved↵
Puts register a linewise below the current line. The cursor moves to the first inserted line; the register keeps its contents.
Vim registers
aRegister a- Linewise · ↵ marks a line break
saved↵
Before & after
red
blueCursor on line 1, column 1Vim registers
aRegister a- Linewise · ↵ marks a line break
saved↵
red
saved
blueCursor on line 2, column 1Vim registers
aRegister a- Linewise · ↵ marks a line break
saved↵
Subject: :put. Documentation-backed illustration; assumes modifiable buffer, cursor line 1 and prepared linewise register a; not replay-verified. Puts register a linewise below the current line. The cursor moves to the first inserted line; the register keeps its contents.
Details & Vim help
Add contents of register in the text. 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 :pu[t] 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.