search

Home  >  Q&A  >  body text

How to efficiently search and replace text in multiple files in vim

Just like sublime's ctrl+shift+f, is grep a more reliable way? But the search feels very slow, not as fast as sublime. I use gvim

ringa_leeringa_lee2774 days ago632

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-16 16:38:00

    • vim uses these commands in combination: vimgrep, windo, bufdo, argdo, substitute, reference

    • Or use fzf/find/ag/grep to search for files and replace with sed

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 16:38:00

    It is recommended to use vim-grep
    to search the entire project or replace a certain variable, which is very convenient.
    Just read the README for detailed explanation

    reply
    0
  • Cancelreply