Inspect registers
:reg
Example
Normal 0 / 3Command-line 1 / 3Hit-enter prompt 2 / 3Normal 3 / 3one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1Show register names and their current contents.
Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
Type the register-listing command without submitting it yet.
Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
Command line
- Input
:reg
Show the register listing and wait at the hit-enter prompt.
Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
Register listing (relevant readable excerpt)
- 0 (linewise)
one two⏎- a (characterwise)
saved
Dismiss the prompt; the app retains the relevant listing excerpt for comparison.
Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
Register listing (relevant readable excerpt)
- 0 (linewise)
one two⏎- a (characterwise)
saved
Before & after
one two
three fourCursor on line 1, column 1Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
one two
three fourCursor on line 1, column 1Vim registers
aRegister a- Characterwise
saved 0Yank register 0- Linewise · ↵ marks a line break
one·two↵
Register listing (relevant readable excerpt)
- 0 (linewise)
one two⏎- a (characterwise)
saved
ILLUSTRATION. Register a contains saved; register 0 contains the latest linewise yank one two. cmdheight=1 and nomore are set. The readable excerpt shows only 0 and a, not the complete native listing; ⏎ marks a stored newline.
Details & Vim help
Show register names and their current contents.
Enter :reg and press Enter to view registers. You can narrow the output with register names, for example :reg a0. Displayed contents can include sensitive text you copied.