Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Sometimes I want to replace something in a file, and see if my pattern did not match things I don't want to replace. The Vim solution is to use 'c' flag for the substitute command, though sometimes I don't want to go through every substitution. Here is my simple solution, which prints every line which matches the pattern, then makes the substitution, and then prints it again, so you can compare if the changes are ok.
The solution is to use the global command: