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.

vim
Edit
Report