How do I append multiple yanks into one named register and paste them as one block?
Named registers are much more powerful when you treat them as accumulators instead of one-shot clipboards.
category:
registers
tags:
#registers
#named-registers
#yank
#paste
How do I paste register contents in insert mode without triggering auto-indentation?
When you paste a register in insert mode with {reg}, Vim inserts the text as if you had typed it — which means auto-indent, abbreviation expansion, and other
category:
registers
tags:
#registers
#insert-mode
#paste
#autoindent
#editing
How do I paste text before the cursor while leaving the cursor positioned after the pasted content?
The gP command works like P (paste before the cursor) but leaves your cursor after the pasted text rather than at its beginning.
category:
editing
tags:
#editing
#paste
#registers
#normal-mode
How do I paste the contents of a register as a new line below the cursor regardless of the register type in Vim?
The :put Ex command always inserts a register's content as a new line below the current line, regardless of whether the register holds characterwise, linewise,
category:
editing
tags:
#registers
#editing
#paste
#ex-commands
#normal-mode
How do I assign a key to toggle paste mode on and off without typing :set paste each time?
The pastetoggle option assigns a single key to toggle Vim's paste mode on and off without typing :set paste or :set nopaste every time.
category:
config
tags:
#config
#paste
#insert-mode
#clipboard
#terminal
How do I paste a blockwise register without padding lines with trailing spaces in Neovim?
Pastes a blockwise register like p, but skips padding lines shorter than the block's right edge with trailing spaces.
category:
visual-mode
tags:
#visual-mode
#paste
#blocks
#registers
#neovim
How do I paste over a visual selection and automatically save the replaced text to a register?
When you visually select text and press p, Vim replaces the selection with the contents of the default register and saves the replaced text into the unnamed reg
category:
visual-mode
tags:
#visual-mode
#registers
#editing
#paste
How do I change whether a register pastes as character, line, or block-wise?
:call setreg('"', @", 'l')
Vim registers carry not just their text content but also a type: charwise (c), linewise (l), or blockwise (b).
category:
registers
tags:
#registers
#editing
#normal-mode
#paste
How do I paste over a visual selection without losing my yanked text?
When you paste over a visual selection using p (lowercase), Vim replaces the selection with your register contents — but the replaced text overwrites your unn
category:
visual-mode
tags:
#visual-mode
#registers
#paste
#editing
How do I paste from a register in insert mode without Vim interpreting special characters?
In insert mode, {reg} pastes from a register but treats certain bytes as key inputs — so a register containing \n triggers a newline, \x08 triggers backspace,
category:
registers
tags:
#registers
#insert-mode
#editing
#paste
How do I paste text and leave the cursor after the pasted content instead of on it?
The standard p command pastes text after the cursor but leaves the cursor at the beginning of the pasted text.
category:
navigation
tags:
#editing
#registers
#normal-mode
#paste
How do I cycle through previously deleted text using numbered registers?
"1p then u then . to cycle
Vim stores your last 9 deletions in numbered registers "1 through "9.
category:
registers
tags:
#registers
#editing
#undo-redo
#delete
#paste
How do I paste register contents literally without triggering mappings in insert mode?
In insert mode, a pastes register a but processes the text as if typed, which can trigger abbreviations and mappings.
category:
registers
tags:
#registers
#insert-mode
#paste
#literal
How do you paste over selected text without losing the yanked text?
Use "_dP which deletes the selection into the black hole register and pastes before.
category:
visual-mode
tags:
#visual
#paste
#preserve
How do you use text from one register inside a macro?
While recording macro a, paste from register b with "bp.
category:
registers
tags:
#registers
#macro
#paste
How do you paste over a visual selection without losing the register?
When pasting over a selection, the replaced text overwrites the unnamed register.
category:
registers
tags:
#registers
#paste
#selection
How do you paste from a register while in visual mode?
In visual mode, "ap replaces the selected text with the contents of register a.
category:
registers
tags:
#registers
#paste
#visual
How do you paste a register's contents multiple times?
Prefix the paste command with a count.
category:
registers
tags:
#registers
#paste
#multiple
How do you paste from a named register before the cursor?
Use "aP (uppercase P) to paste the contents of register a before the cursor position, as opposed to "ap which pastes after.
category:
registers
tags:
#registers
#paste
#before
How do you force a linewise register to paste characterwise?
:call setreg('a', @a, 'v') then "ap
Use setreg() to change register a to characterwise mode (v), then paste.
category:
registers
tags:
#registers
#characterwise
#paste