Section: Registers and marks

Paste after or before cursor

vim
vim
p  P
Explanation

`p` pastes after; `P` pastes before.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registers and marks
Use a named register
Yank or paste from a named register.
OpenIn sheetvimsame section
List register contents
Inspect available registers.
OpenIn sheetvimsame section
Set and jump to a mark
Bookmark a file location and return later.
OpenIn sheetvimsame section
Characterwise visual mode
Select arbitrary text regions.
OpenIn sheetvim1 tag match
Insert at start of block
Add text to the start of many lines at once.
OpenIn sheetvim1 tag match
Linewise visual mode
Select whole lines.
OpenIn sheetvim1 tag match