Thursday, July 17, 2014

Vim - search and replace in multiple files

You can use :argdo command once you have opened multiple files using for example vim -p file1 file2 etc. Example:

:argdo %s/text_to_replace/new_text/gc

No comments:

Post a Comment