How do I paste the result of a calculation or expression in normal mode?
The expression register ("=) lets you evaluate any Vimscript expression and paste the result directly into your buffer from normal mode.
category:
registers
tags:
#registers
#editing
#normal-mode
#productivity
#math
How do I add more commands to a macro I already recorded?
If you finish recording a macro and realize you forgot a step, you don't need to re-record the whole thing.
category:
macros
tags:
#macros
#registers
#normal-mode
#editing
#productivity
How do I collect all lines matching a pattern and copy them to the end of the file or a register?
The :g command combined with yank A (uppercase A to append) lets you collect every line matching a pattern into a single register without overwriting previous c
category:
command-line
tags:
#editing
#ex-commands
#global-command
#registers
#filtering
How do I view the contents of all registers in Vim?
The :registers command displays the contents of all Vim registers, showing you exactly what text is stored in each one.
category:
registers
tags:
#registers
#ex-commands
#normal-mode
How do I copy an entire line in Vim?
The yy command yanks (copies) the entire current line, including the newline character.
category:
editing
tags:
#editing
#registers
#yank
#normal-mode
How do I copy text to the system clipboard in Vim?
The "+y command yanks (copies) text into the system clipboard register, making it available to paste in other applications outside of Vim.
category:
registers
tags:
#registers
#yank
#editing
#normal-mode
How do I paste text above the current line?
The P (uppercase) command pastes the contents of the default register before the cursor position.
category:
editing
tags:
#editing
#registers
#normal-mode
How do I paste text below the current line?
The p command pastes (puts) the contents of the default register after the cursor.
category:
editing
tags:
#editing
#registers
#normal-mode
How do I paste text from the system clipboard into Vim?
The "+p command pastes the contents of the system clipboard into Vim.
category:
registers
tags:
#registers
#editing
#normal-mode
How do I edit a recorded macro in Vim?
Vim stores macros in registers, which means you can paste a macro's contents into a buffer, edit it as regular text, and yank it back into the register.
category:
macros
tags:
#macros
#registers
#editing
#normal-mode
How do I delete text without overwriting my yank register?
The "d command deletes text using the black hole register ("), which discards the deleted content instead of storing it.
category:
registers
tags:
#registers
#editing
#delete
#normal-mode
How do I append text to a register instead of replacing it?
The "Ayy command appends the current line to register a instead of overwriting it.
category:
registers
tags:
#registers
#yank
#editing
#normal-mode
How do I yank and paste using named registers?
Named registers let you store multiple pieces of text independently.
category:
registers
tags:
#registers
#yank
#paste
#normal-mode
How do I record and replay a macro in Vim?
Macros let you record a sequence of commands and replay them.
category:
macros
tags:
#macros
#automation
#registers
#normal-mode