Using alt+backspace key in vim command line to delete by words

前端 未结 6 2351
萌比男神i
萌比男神i 2021-02-18 17:03

Is there a way to use the alt+backspace in vim command line? It gets unruly when having to backspace /very/long/file/path individually instead of using

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-18 17:42

    If you are at the end of the path you can hit B followed by a dW (case matters). This will jump you to the beginning of the word (ignoring the slashes) and subsequently delete the word (again ignoring the slashes).

    Hope this helps.

提交回复
热议问题