delete word after or around cursor in VIM
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.
Normal mode:
daw : delete the word under the cursor
caw : delete the word under the cursor and put you in insert mode
I think it's just daw
daw - delete a word
What you should do is create an imap of a certain key to a series of commands, in this case the commands will drop you into normal mode, delete the current word and then put you back in insert:
:imap <C-d> <C-[>diwi