Make vim puts tattered objects in numbered registers

I understand that numbered registers 1-9 are only populated with things that were _d_eleted or _c_hanged, but is there a way to make _y_anked elements also populate these buffers without specifying the user yank as delete and put?

For example, if I have

one
two
three

and I’m on the line β€œone” and doing yykyykyy, I would expect register 3 to have β€œone”, register 2 to have β€œtwo”, and register 1 to have β€œthree”, with registers 4 and all that already bumped into there.

+3
source share
2 answers

, script - , ? YankRing yanks, .

+1

"3yyk"2yyk"1yyk
+1

Source: https://habr.com/ru/post/1776819/


All Articles