Replace selection with register contents; deleted text in unnamed register
p
Example
Visual 0 / 1Normal 1 / 1one two
three four
five sixCursor on line 1, column 3 · Character selectionred two
three four
five sixCursor on line 1, column 3Replace selection with register contents; deleted text in unnamed register.
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
red -Small delete register- Characterwise
Empty
Replace selection with register contents; deleted text in unnamed register
Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one -Small delete register Changed- Characterwise
one
Before & after
one two
three four
five sixCursor on line 1, column 3 · Character selectionVim registers
"Unnamed register- Characterwise · Uses Yank register 0
red -Small delete register- Characterwise
Empty
red two
three four
five sixCursor on line 1, column 3Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one -Small delete register Changed- Characterwise
one
Start in Visual mode. The unnamed register contains the characterwise text "red" before the put command. The highlighted area is observed in Vim. Any displayed register boxes show the exact copied or deleted contents.
Details & Vim help
Example replayed in Vim
Replace selection with register contents; deleted text in unnamed register. Use in Visual mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.