Vim quicktip #2: A substitution with an empty search pattern replaces matches from the last search. After finding “foo” (/foo
) in the file, you can replace all occurrences with :s//bar/
.
Vim quicktip #2: A substitution with an empty search pattern replaces matches from the last search. After finding “foo” (/foo
) in the file, you can replace all occurrences with :s//bar/
.