Many times I find that I will will want to yank the content between quotes and paste them inside another set up of quotes. For example, take this code for instance.
var foo = 'bar',
baz = 'buz';
I would normally do a yi'
inside of 'bar'
to yank the word bar.
How do I replace buz with my yank? I know one option is to do a di'"0P
, I just wonder if there is an easier solution I'm overlooking.
With your cursor anywhere on the word buz
, vi'p
to visually select inside the quotes and then put the contents of the most recent yank.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With