Vim Copy and Paste

Yanking and putting text

Yank (Copy)

yy # yank line
yw # yank word
y$ # yank to end of line
yiw # yank inner word
yaw # yank word with space

Put (Paste)

p # paste after cursor
P # paste before cursor

Registers

:reg # show all registers
"ayy # yank line to register a
"ap # paste from register a
"0p # paste from yank register

System Clipboard

"+y # copy to system clipboard
"+p # paste from system clipboard