When I do an interactive search for some pattern, each time I hit n, I get the next result. How do I delete / change each result that I come to?
Ideally, what I'm looking for would work like this: I hit n to get the search result, and then magic command to highlight that result in visual mode, and then I can do d or c to delete or change the highlighted text.
Example:
I enter the command
/hello .
and it matches hello, a space, and any character after it.
So say the first match it reaches is "hello w".
Now, I want to delete all of hello w, search for the next match (say it is hello a), change the next match to hello there, and keep doing different things to each match.
I'm not looking for just search-and-replace, because I want to be able to perform any action on each result interactively, such as delete the first result, replace the second result with bye, and replace the third result with later.