Vim Recall繁體中文

Change selected lines or change from the block edge to line ends

C

Example

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

Change selected lines or change from the block edge to line ends.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
1 Delete register 1
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 0saved
1 Delete register 1
CharacterwiseEmpty
· space ⇥ tab ↵ line break
After
red
three four
five six
Cursor on line 1, column 3

Vim registers

" Unnamed register Changed
Linewise · ↵ marks a line break · Uses Delete register 1one·two↵
1 Delete register 1 Changed
Linewise · ↵ marks a line breakone·two↵
· space ⇥ tab ↵ line break

Start in Visual mode. 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

Change selected lines or change from the block edge to line ends. Use in Visual mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. In characterwise or linewise Visual mode, change the whole selected lines and start Insert mode. In blockwise Visual mode, extend the change from the block's left edge through each selected line's end and start Insert mode.