Using the terminal becomes much more cozy and comfortable after I activate vim-mode. A mistake 3 words earlier? No problem: 3bcw and I'm good to go. Want to delete the whole thing? Even easier: cc I can even use v to open the command inside a fully-fledged (neo)vim instance for more complex rework. If you use (neo)vim already, this is the best way to go as there are no new shortcuts to learn and memorize.
I use vim a lot but not on the shell A mistake 3 words earlier? meta-bbbd (not as elegant, I admit) delete the whole thing? ctrl-ak (this is even quicker than vim, especially if capslock is mapped to ctrl) the control-based emacs movements work system-wide on macos btw. I am using ctrl-p and ctrl-n to go up and down lines, ctrl-a and ctrl-e to go to beginning and end of lines while writing this comment in by browser…
With vi (after running "set -o vi"): kC
(k to move up back one position in history. C to "change" to the end of the line.)
This is equivalent to doing the following with "set -o emacs": pu
Regardless, use what you're comfortable with or can incrementally add to your muscle memory.