Vim Recall繁體中文

Show the contents of registers

:registers

Example

Normal 0 / 3
notes
Cursor on line 1, column 1

Show the contents of registers.

Vim registers

a Register a
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break
Before & after
Before
notes
Cursor on line 1, column 1

Vim registers

a Register a
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break
After
notes
Cursor on line 1, column 1

Vim registers

a Register a
Linewise · ↵ marks a line breakred↵
· space ⇥ tab ↵ line break

Register listing (readable summary)

a
linewise: red followed by a newline

Subject: :registers. Documentation-backed illustration; assumes prepared linewise register a; cmdheight=1, nomore, and messagesopt includes hit-enter; the panel summarizes the selected register rather than reproducing native output; not replay-verified. Lists only register a and waits at the hit-enter prompt. Displaying register contents changes neither their values nor buffer text.

Details & Vim help

Show the contents of registers. 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 :reg[isters] 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. This is the expanded spelling of the curated :reg entry; both spellings invoke the same built-in command.