delete word after or around cursor in VIM

前端 未结 16 633
一向
一向 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:32

    Not exactly sure about your usage of "before" and "after", but have you tried

    dw
    

    ?

    Edit: I guess you are looking for something to use in insert mode. Strangely enough, there is nothing to be found in the docs, ctrl-w seems to be all there is.

提交回复
热议问题