Replace across files
There are many plugins for handling find/and replace across files in Vim, but sometimes only a native way will do. While many people prefer to do substitution from their command line outside of Vim, I often reach for this native, no-plugin way to substitute text across files: the args list.
First, you populate the args list with the list of files you want to search across. For example:
Next, you perform the substitution across those files:
Finally, save all the files:
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?