from :help “A
“Vim fills these registers only when you say so. Specify them as lowercase
letters to replace their previous contents or as uppercase letters to append
to their previous contents“
Is there a way to turn this off?
it’s super annoying: when I hold down shift to type double quote ” to append to a register, its pretty often the case I hold the shift for a split second too long and input “A instead of “a (so it appends to register a instead of replacing it altogether)
If you wish to implement what @romainl has suggested it can be done in a six lines (three if you don’t mind having magic numbers, leaving unneeded variables and remapping in operator-pending mode):
. But this solution has a drawback: you now loose ability to wait indefinitely between pressing
"andA(unless you want toset notimeoutwhich has problems on its own).