delete word after or around cursor in VIM

前端 未结 16 617
一向
一向 2020-12-07 06:59

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

16条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 07:29

    I made two mappings so I could get consistency in insert and out of insert mode.

    :map <'Key of your choice'> caw

    :imap <'Key of your choice'> <'Esc'> caw

提交回复
热议问题