Vim Recall繁體中文

Remove the count lines [into register x] and start insert

cc

Example

Normal 0 / 4
  old blue
Cursor on line 1, column 4

Remove the count lines [into register x] and start insert.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
1 Delete register 1
CharacterwiseEmpty
· space ⇥ tab ↵ line break
Before & after
Before
  old blue
Cursor on line 1, column 4

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
1 Delete register 1
CharacterwiseEmpty
· space ⇥ tab ↵ line break
After
new
Cursor on line 1, column 3

Vim registers

" Unnamed register Changed
Linewise · ↵ marks a line break · Uses Delete register 1··old·blue↵
1 Delete register 1 Changed
Linewise · ↵ marks a line break··old·blue↵
· space ⇥ tab ↵ line break

Start in Normal mode. The displayed replacement text is typed explicitly, followed by Esc.

Details & Vim help

Example replayed in Vim

Remove the count lines [into register x] and start insert. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.