Search & replace using quickfix list in Vim

前端 未结 6 1806

So far I always used EasyGrep for replacing text in multiple files. Unfortunately it is quite slow when a project gets bigger. One thing that seems to be amazingly fast is G

6条回答
  •  余生分开走
    2020-12-07 11:00

    cdo command has now been added! After you grep, you can use cdo to execute the given command to each term in your quickfix list:

    cdo %s///cg

    (Take a look at this git commit and this vim developers google group discussion for more information on cdo and the motivations behind adding it.)

提交回复
热议问题