Skip to content

Neovim Registers

Neovim use registers to store and access text using Neovim commands.

" to access a register by name.

The name of a register is a number, alphabetical or special character.

Space f r lists the values in all registers in a picker popup.

Yank and paste commit message

Select the text of the commit message

" m y yanks the selected text into register m

When creating a new commit, paste the message from the register

" m p pastes the register text into the commit message buffer

Paste last evaluation result from Conjure

When Conjure evaluates code the result is stored in the c register.

" c p pastes the register text into the commit message buffer

Register menu

" popup shows the current registers in use and a summary of there contents.

Neovim registers popup menu Neovim registers popup menu

Registers

Neovim help - registers

:help registers

" the unnamed register, used by Neovim normal commands, e.g. c d p s x y, etc.

0 to 9 numbered registers containing yank and delete history

- small delete register for text smaller than a line

a to z named registers manually selected, A to Z to append to the text already in the register

: . and % read-only registers use with put commands (last inserted, current file name, recent command)

# alternate buffer file name

= expression register for the result of running a Neovim command expression

+ and * selection registers for GUI

_ black hole register does not store text, use when normal commands shouldn't update other registers

/ last search pattern register used

Find Registers

Space f r opens the list of registers in a telescope popup.

AstroNvim Find Registers - telescope view AstroNvim Find Registers - telescope view

Registers in insert mode

Ctrl+r in insert mode pastes the content of the given register, e.g. Ctrl+r a to paste the content of "a