I would like a warning when a large chunk of data is to be deleted.
I tend to use the mouse along with vim to highlight text (to copy or delete).
I also use the mouse to scroll notes when I want to look around after searching a keyword.
Sometimes the mouse accidentally goes into visual mode—when I scroll up and down, this will causes all the text along the scrolling path to be selected or deselected.
I often don't realize this at the time and end up deleting (somehow) a large chunk of data without even realizing it.
Is there some kind of script I can install that will warn me when deleting in conjunction with visual-mode and/or scrolling?
I believe most of the issue is related to these:
- highlighting (be it
Vor mouse left button accidentally dragged when scrolling),
- scrolling (be it Ctrl-e, Ctrl-y, or mouse wheel)
- text manipulating (be it delete or yank, etc.)
u. And anyways, pressing
uis a lot faster than reading a warning and dismissing it, isn't it?