I have a bad habit of deleting some text
a, heading off to another section of the document to paste it, and finding something else along the way that I need to delete. When I get to my final destination, where I want to paste the originally deleted text
a, it's no longer in the default register.
I know that this is easy to fix by thinking ahead and deleting the text into a named, rather than the default, register. However, in the absence of that foresight, what I do instead is hope I haven't deleted too much text in the meantime, and look through the numbered registers until I find
The problem is that
a is usually not just a single character, but rather a large block of text, and I might only remember a passage from the middle of that block when I am searching the registers. Since
:reg only shows a one-line preview of each register, I can't necessarily find
a by visual inspection.
Is there a command that I can issue to match a given regex against, not a specific register, but all registers, and that will tell me, say, "your regex matches in