Deleting Words in Vim
As a recent vim convert, I learn new commands everyday from my fellow rocketeers. Here's some cool ones for deleting words:
-
Use
dwto delete word. Cursor placement is important! If your cursor is not on the first character, it will only delete from your cursor to the end of the word. -
Use
diwto delete inside word. Deletes the entire word that your cursor resides in. -
Use
dt<char>to delete to character. Deletes from your cursor to the specified character.