Which editors out of Emacs, Vim and JEdit support multiple simultaneous text insertion points?

后端 未结 10 2172
心在旅途
心在旅途 2021-02-12 12:06

Background: JEdit (and some other text editors as well) support a feature called Multiple simultaneous text insertion points. (at least that\'s what I\'m callin

10条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 12:42

    The vim way to do this is the . command which repeats the last change. So, for instance, if I change a pointer to a reference and I have a bunch of obj->func that I want to change to obj.func then I search for obj->, do 2cw to change the obj-> to obj., then do n.n.n. until all the instances are changed.

    Perhaps not a flexible as what you're talking about, but it works frequently and is very intuitive and fast when it does.

提交回复
热议问题