Efficient way to refactor a class/method/string within a directory using vim
问题 So far, I have been manually refactoring code by using the find-and-replace operation %s:/stringiwanttoreplace/newstring/g in vim. But this is a slow and laborious process if I have stringiwanttoreplace in many files inside a specific directory. My current/typical slow and laborious process involves a grep:- grep -rn "stringiwanttoreplace" . in my terminal to reveal all the locations/filenames where stringiwanttoreplace are; and now that I know which files contain stringiwanttoreplace , I