Vim Recall繁體中文

Replace selection with register contents; deleted text in unnamed register

p

Example

Visual 0 / 1
one two
three four
five six
Cursor on line 1, column 3 · Character selection

Replace selection with register contents; deleted text in unnamed register.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0red
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
Before & after
Before
one two
three four
five six
Cursor on line 1, column 3 · Character selection

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0red
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
After
red two
three four
five six
Cursor on line 1, column 3

Vim registers

" Unnamed register Changed
Characterwise · Uses Small delete registerone
- Small delete register Changed
Characterwiseone
· space ⇥ tab ↵ line break

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.