delete word after or around cursor in VIM

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

    The accepted answer fails when trying to repeat deleting words, try this solution instead:

    " delete current word, insert and normal modes
    inoremap  bdw
    noremap  bdw
    

    It maps CTRL-BackSpace, also working in normal mode.

提交回复
热议问题