Vim’s search and replace command is really nice for quickly searching and replacing all instances of a string. But sometimes you need to be a little careful with the replacement process and might need to review the matched string before you replace it.
Thankfully, simply adding a c
to the end of the search and replace all command in Vim will provide a confirmation prompt, allowing you to review before replacing. It also gives you the option to skip over an instance or stop the search and replace process altogether.