How to efficiently search and replace text in multiple files in vim
ringa_lee
ringa_lee 2017-05-16 16:36:00
0
2
645

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_lee
ringa_lee

ringa_lee

reply all(2)
刘奇
  • 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

小葫芦

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template