Vim Recall繁體中文

Change inside double quotes

ci"

Example

Normal 0 / 4
say "old"
Cursor on line 1, column 7

Replace the contents of double quotes.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
Before & after
Before
say "old"
Cursor on line 1, column 7

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
After
say "new"
Cursor on line 1, column 8

Vim registers

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

Start in Normal mode. Cursor starts on l. Type ci"new, then Esc.

Details & Vim help

Example replayed in Vim

Replace the contents of double quotes.

The i" text object excludes the delimiters. Type new content and press Esc; the surrounding double quotes stay in place.