Customising word separators in vi

前端 未结 6 1534
抹茶落季
抹茶落季 2020-12-04 23:24

vi treats dash - and space   as word separators for commands such as dw and cw.

Is there a way to add unders

6条回答
  •  抹茶落季
    2020-12-04 23:58

    You could type cf_dest_ and save the counting part.

    Edit: or as suggested: ct_ changes text until right before the underline character. (I'm using the f motion more, so it came more naturally to me)

    Or you could redefine 'iskeyword' (:help iskeyword for details).

提交回复
热议问题