delete word after or around cursor in VIM

Mantas picture Mantas · May 7, 2009 · Viewed 151.8k times · Source

I'm now switching to VIM from TextMate. I found ^+W in INSERT mode very useful. However, I'd like to delete not only the word before cursor, but the word after or around cursor as well.

I did some googling, but the only thing I can find was ^+W to delete word BEFORE cursor.

Answer

Amjith picture Amjith · May 7, 2009

Normal mode:

daw : delete the word under the cursor    
caw : delete the word under the cursor and put you in insert mode