Closed wellle closed 9 years ago
I'm willing to fix the conflicts if there's interest.
Your analysis sounds right on. I'm interested.
Any chance you could see how this affects #2? They might be related?
I'm pretty sure #2 is unrelated. The code it deletes is not related to anything.
Should line 6 change to
normal! gvy
@bronson: I updated my commit on top of current master.
Since I agree with @guywithnose on #2 I cherry picked his commit and solved the conflicts from that too.
Phenomenal. Thank you @wellle and @guywithnose. I'm glad you both understand this code, I'm rapidly forgetting how it all works...
Previously
gv"sy
yanked not only into register@s
, but also into register@"
, while only@s
gets restored afterwards.To confirm this, yank some text into
@"
withyiw
, visually select and search some other textv$*
and paste withp
. This will not paste the originally yanked word.This pull request uses and restores the
@"
register instead. The above example pastes the originally yanked word as expected.