Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)?

like image 921
Loom Avatar asked Dec 25 '22 11:12

Loom


1 Answers

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

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

like image 102
QuestionC Avatar answered Dec 28 '22 19:12

QuestionC