The Unnamed Register

"" โ€” where every yank and delete lands by default.

Keys: ""

Every yank and delete writes the unnamed register. p and P read from it. It is the implicit clipboard of every Vim editing session.

When you press y, d, c, or x, the affected text goes into the unnamed register. When you press p or P, the unnamed register comes back. Unless you say otherwise, this is the register your editing uses.

Yank, delete, paste โ€” all use the unnamed register

Worked example โ€” yy then p

Copy a line, paste below.

Step 1 ยท
registers.unnamed
Step 2 ยท yy ยท yy โ€” yanked to "" (unnamed).
yy โ€” yanked to "" (unnamed).
Step 3 ยท p ยท p โ€” pasted below.
p โ€” pasted below.
Step 4 ยท p ยท p again โ€” same register, same content.
p again โ€” same register, same content.

The unnamed register " is the default destination for yanks/deletes and source for p/P.

โ–ถ Try this in the simulator

See also: Registers, Numbered Registers, Named Registers, Delete