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.
To quickly change a word you can use cw, caw or ciw. Use c$ or just C to quickly change from the cursor to the end of a line, cc to change an entire line, or cis for a sentence.