Search & replace using quickfix list in Vim

前端 未结 6 1802

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 10:55

    Using quickfix-reflector.vim, you can edit your search results in the quickfix window. The write command will then save the changes to your files.

    :copen
    :%s/foo/bar/cg
    :write
    

提交回复
热议问题