Re: Numbered registers and kill rings
In the hope that it is Christmas:
I miss the emacs kill ring. To enable it in a smooth fashion, I would need the following functionality:
1. Every yank and delete that does not go into the black hole, is put in the "1 register. Whatever was in the "1 register goes to the "2 register, and so on. The 9" register falls off the edge and dies.
2. The dot command, if it finds a "number register, increments the number by one.
A few nifty remaps then clinches the deal:
nnoremap p "1p
nnoremap P p ; to retain ability to use registers
nnoremap b u. ; cycle through kill ring
nnoremap x "_x ; So that x's do not disturb the kill ring
I can now delete and yank for a while, then paste with p. If I do not like what's there, I cycle back in history with b. This obviates the need for plugins like yankring.
This may be heresy, because 1) is not exactly the way vim works. Vim only saves deletes to the numbered registers, and only multi-line ones. I never found this behaviour to be very useful. I have modified the source of vim to do this, something that was fairly trivial to do. 2) is as per vim specs.
What does everyone else think?