By searching, I've highlighted the string that I want to change. Now I want to replace only the highlighted text. I'm using n
to advance to the next instance of the search string. I was thinking I could do something like ciw
but that changes the whole word not just the highlighted text.
I'm familiar with :%s/old/new/g
but I don't want to change all instances. Instead, I want to advance my cursor to each instance and then decide whether to change it.