I'd like to learn how to search and replace in VIM - keeping the search string intact and adding to it.
Take this as a simple example. See image below. I copied a simple python script written for python2 and the goal is to make it compatible for python3. The print lines needs to be encapsulated with
:%s/".*" to regex all lines within two
". Now I'd like to add
() on top of that
string -> (STRING). So I have to somehow reference that search string and add to it.
Something like this