There is a phrase that I want to look for in Vim. When found, I want to delete that occurrence of the phrase. What is the easiest way to cycle through all the occurrences (via n), and delete a match one by one (I do not want to delete all of them at once).
Note: I know I can delete a certain number of characters or a number of words, but I want to specifically remove the match of my search. Is this possible?
http://vim.wikia.com/wiki/Search_and_replace
Try this search and replace:
Change each ‘foo’ to ‘bar’, but ask for confirmation first.
Press y or n to change or keep your text.