How to define a new Vim operator with a parameter?

前端 未结 3 1362
慢半拍i
慢半拍i 2020-12-24 08:35

I have been looking to map a new operator in Vim that takes an extra parameter.

For example, we know that ciw will “cut inside word” and will put you int

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 09:04

    Consider one of the plugins for writing custom text objects. For example: https://github.com/kana/vim-textobj-user

提交回复
热议问题