Lets say that i have this text:
$test = \'lorem\'; $test2= \'ipsum\';
and I want to copy lorem and paste into ipsum. I tried to do yi\' on lor
yi\'
Why don't you yank into a named buffer, using "ayi', then delete and paste with d'i"aP?
"ayi'
d'i"aP