Case preserving substitute in Vim

前端 未结 6 1899
無奈伤痛
無奈伤痛 2020-12-02 06:32

Can this can be done in Vim?

What I mean is: searching for \'BadJob\' and replacing with \'GoodJob\' would do the following replacements



        
6条回答
  •  不思量自难忘°
    2020-12-02 06:48

    An alternative to the keepcase plugin is SmartCase - replacing words while keeping original case. (Don't let yourself be discourage by the bad ratings.)

提交回复
热议问题