Easiest way to swap occurrences of two strings in Vim?

后端 未结 5 1751
逝去的感伤
逝去的感伤 2020-12-04 15:39

What is the easiest way to replace all occurrences of string_a with string_b while at the same time changing anything that was already string

5条回答
  •  日久生厌
    2020-12-04 16:04

    You can do this easily with Tim Pope's Abolish plugin

    :%S/{transmit,receive}/{receive,transmit}
    

提交回复
热议问题