Loom
Loom

Reputation: 9986

Delete part of word right/left to the cursor in vim

Let cursor is positioned on some inner symbol of word in vim. I'd like to delete part of word from the left (or right) of cursor. How it can be done (in normal and insert mode)?

Upvotes: 4

Views: 1623

Answers (1)

QuestionC
QuestionC

Reputation: 10064

db deletes from the cursor to the beginning of the current word.

de deletes from the cursor to the end of the current word.

Upvotes: 11

Related Questions