Vim Recall繁體中文

Replace selection with register contents; registers are unchanged

P

Example

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

Replace selection with register contents; registers are unchanged.

Before & after
Before
one two
three four
five six
Cursor on line 1, column 3 · Character selection
After
red two
three four
five six
Cursor on line 1, column 3

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; registers are unchanged. Use in Visual mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.