Vim Recall繁體中文

Put the text [from register x] before the cursor the count times, leave the cursor after it

gP

Example

Normal 0 / 1
one two
Cursor on line 1, column 1

Put the text [from register x] before the cursor the count times, leave the cursor after it.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0red
· space ⇥ tab ↵ line break
Before & after
Before
one two
Cursor on line 1, column 1

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0red
· space ⇥ tab ↵ line break
After
redone two
Cursor on line 1, column 4

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0red
· space ⇥ tab ↵ line break

Start in Normal mode. The unnamed, a, and 0 registers contain the characterwise text "red".

Details & Vim help

Example replayed in Vim

Put the text [from register x] before the cursor the count times, leave the cursor after it. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.