How do I paste the unnamed register after transforming it to uppercase?
Registers in Vim are not only for raw replay; you can treat them as string data and transform them at paste time.
category:
registers
tags:
#registers
#expression-register
#editing
#vimscript
How do I evaluate a Vim expression and paste the result directly from a register?
The expression register lets you compute text on demand and insert it without leaving Normal mode workflows.
category:
registers
tags:
#registers
#expression-register
#normal-mode
#automation
How do I paste a register in insert mode without triggering auto-indent?
When you use a in insert mode to paste register a, Vim inserts the text as if you typed it character by character.
category:
registers
tags:
#registers
#insert-mode
#indentation
#editing
How do I paste the name of the alternate (previously edited) file into the buffer?
The # register holds the name of the alternate file — the file you were editing just before the current one.
category:
registers
tags:
#registers
#buffers
#navigation
#normal-mode
How do I paste the contents of a register into the command line or search prompt?
When typing an Ex command or search pattern, you often need to insert text you've already yanked or deleted.
category:
registers
tags:
#registers
#command-line
#search
#editing
How do I paste back a small deletion (like a deleted character) while in insert mode?
In insert mode, - pastes the contents of the small delete register ("-).
category:
registers
tags:
#registers
#insert-mode
#editing
How do I paste the current Git commit hash directly from Vim using the expression register?
"=system('git rev-parse --short HEAD')->trim()<CR>p
If you frequently write commit references in notes, code comments, or release docs, you can avoid shell context switches and paste the hash straight from Vim.
category:
registers
tags:
#registers
#command-line
#editing
#git
How do I cycle through my previous deletions to find the one I want to paste?
Vim stores your last 9 deletions (of one line or more) in the numbered registers "1 through "9.
category:
registers
tags:
#registers
#editing
#normal-mode
#undo-redo
#paste
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 paste the last yanked text while in Insert mode without using the unnamed register?
In Insert mode, {reg} pastes the contents of any register inline at the cursor.
category:
registers
tags:
#registers
#insert-mode
#editing
How do I copy a line to another location without using yank and paste?
How it works The :t command (short for :copy) copies one or more lines and places them below the specified address.
category:
editing
tags:
#editing
#ex-commands
#normal-mode
How do I insert the same text multiple times without a macro or copy-paste?
Vim's insert commands accept a count prefix that repeats everything you type.
category:
editing
tags:
#editing
#insert-mode
#normal-mode
#formatting
How do I swap two regions of text without a complex yank-delete-paste workflow?
cx{motion} … cx{motion} (vim-exchange)
The vim-exchange plugin provides cx{motion} to mark a region, then cx{motion} again on a second region to swap them in place.
category:
plugins
tags:
#editing
#text-objects
#motions
#normal-mode
How do I paste the text I just typed in insert mode?
The ".
category:
registers
tags:
#registers
#editing
#insert-mode
#normal-mode
#productivity
How do I paste or reuse my last search pattern?
Vim stores your last search pattern in the / register.
category:
registers
tags:
#registers
#search
#insert-mode
#command-line
How do I move lines to a different position without using yank and paste?
The :move command (abbreviated :m) relocates lines to a new position in the buffer without touching any registers.
category:
editing
tags:
#ex-commands
#editing
How do I paste my last Ex command into the command line or a buffer?
Vim stores your last executed Ex command in the read-only : register.
category:
registers
tags:
#registers
#ex-commands
#command-line
How do I paste the current filename into the buffer?
The % register in Vim always contains the name of the current file.
category:
registers
tags:
#registers
#editing
#insert-mode
#productivity
#filename
How do I paste the last Ex command I ran into my buffer?
The : register holds the most recently executed Ex command.
category:
registers
tags:
#registers
#ex-commands
#normal-mode
#productivity
How do I paste a register literally in insert mode without triggering auto-indent or special key handling?
When you press x in insert mode to paste a register, Vim inserts the text "as if you typed it" — meaning autoindent, textwidth, and other insert behaviors can
category:
registers
tags:
#registers
#insert-mode
#editing