Vim Recall繁體中文

Delete a sentence and adjacent whitespace

das

Example

Normal 0 / 2
One sentence.  Next sentence.
Cursor on line 1, column 5

Delete the range selected by as.

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
Before & after
Before
One sentence.  Next sentence.
Cursor on line 1, column 5

Vim registers

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

Vim registers

" Unnamed register Changed
Characterwise · Uses Small delete registerOne·sentence.··
- Small delete register Changed
CharacterwiseOne·sentence.··
· space ⇥ tab ↵ line break

Start in Normal mode, at line 1, column 5 (one-based). Delete a sentence and adjacent whitespace. With the cursor inside a sentence, as selects that whole sentence. as normally includes trailing whitespace; if there is none or the cursor starts in leading whitespace, it includes leading whitespace instead. Press das.

Details & Vim help

Example replayed in Vim

Delete the range selected by as.

Delete a sentence and adjacent whitespace. With the cursor inside a sentence, as selects that whole sentence. as normally includes trailing whitespace; if there is none or the cursor starts in leading whitespace, it includes leading whitespace instead.