I quite often use the :registers
command to show the contents of all the registers (I forget what I put where, exactly what the role of "*
, ".
, "%
, etc. are).
Especially because I set the "
option in the viminfo
option, and hence my registers are persisted between my vim sessions (which in general I want, in the short term), over time the :registers
list gets longer and longer, and hence more and more cumbersome and filled with really old stuff.
So far, the only way I've found to fix this is to manually edit some of the 'old' register contents out of ~/.viminfo
, which I need to do with vim -u NONE
and is hence a bit cumbersome.
Is there a cleaner way to wipe all registers, or wipe a specific register, so it no longer appears in the :registers
list?