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/`.

· · Web · 0 · 0 · 1
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!