I recently removed the YankRing plugin from my setup partly because it was causing some problems with macros, but mostly because I decided it would be better to train myself to use Vim's registers instead — in particular, the way that deleted text is stored initially in register "1
and then shifted up through "2
, "3
, etc. as further deletions are made is very useful.
However, when a deletion/change removes less than one line of text, it is instead stored in the "-
small delete register (with a few exceptions for certain movement commands). If subsequent small deletions are made, that bit of text is lost.
Is it possible to get Vim to store all deletions in register "1
?
nnoremap d "1d
almost works, but you end up with the text in both registers "1
and "2
.
I don't mind whether or not the functionality of the small delete register is affected. Suggesting I change my behaviour to save small deletions to a named register would definitely not be a helpful answer — that's what I'm currently doing.