To append a match efficiently in Vim :g/---/s/---/X/

后端 未结 2 1094
闹比i
闹比i 2021-02-04 12:35

How can you refer to the match in the command g in Vim?

I would like to put X after the match without replacing the match. For instance, in

2条回答
  •  北海茫月
    2021-02-04 13:39

    :%s/\(create_title\)/\1X/g
    

    works for me. (if I understand your question correctly).

提交回复
热议问题