I recently read about the black hole register
"_ which is a write-only register.
Vim documentation describes it this way:
- Black hole register "_
When writing to this register, nothing happens. This can be used to delete text without affecting the normal registers. When reading from this register, nothing is returned.
In all the articles and books I read the authors always use the same example which is to use this register when we need to delete some text without erasing what we previously yanked.
I understand this use but I'm surprised by the fact that I can't find other use cases of this register, which leads me to 2 questions:
Is this register useful in some other use cases? If yes, which ones?
If the only purpose of this register is to be used in the use case I quoted before, why did the creators of Vim decided to solve this problem with such a register? I mean this answer shows a solution to the problem which implies less keystrokes than using
"0can also avoid the use of the black hole register so why did they create it?