delete word after or around cursor in VIM

前端 未结 16 631
一向
一向 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条回答
  •  萌比男神i
    2020-12-07 07:38

    To delete the entire word your cursor is on use diw
    To delete the entire word your cursor is on and to put you in insert mode use ciw
    if you dont want to delete the entire word but delete from where you are the dw/cw

提交回复
热议问题