I stumbled upon something in Vim that I'm not quite sure how I can replicate.
Basically I have this
var first_set = input.split(','); var second_set = input;
I had my cursor somewhere between the
; on the second line, accidentally fat-fingered a key near
i on my keyboard, and it instantly popped out what I was going to type.
var second_set = input.split(',');
I had previously inserted
.split(',') to the first line.
Is there a Vim shortcut that automatically takes your last edit and spits it back out? I really can't figure out what Vim did that would know I wanted the exact same method. Even my autocomplete
<C-n> doesn't go that far to even put in the same arguments.