That should have been a hardware key!
A message from the Vim gang.
That should have been a hardware key!
A message from the Vim gang.
That said, I had a MBP with touch bar for half a year and even though I was quite excited when they announced it, I hated it. I will not buy another laptop with that thing on it.
https://stackoverflow.com/questions/127591/using-caps-lock-a...
Also, pressing two different keys is faster than pressing the same key twice
d<Escape> on the other hand would cancel the operator-pending mode for delete and do nothing.
That takes care of returning from insert mode to normal mode. What do you do for returning from other modes (operator pending mode, visual mode, etc.) to normal mode? I don't think it is possible to reliably reproduce all of the <Escape> in all the modes with remaps.
As for visual mode... I just noticed something odd: in Neovim, <Esc> doesn't drop me back into Normal mode from Visual or Block-visual; I have to hit "v" again. The behavior doesn't happen in Vim itself (that is, <Esc> works as expected.) I wonder why that is.
Either way, I'd hazard to say that exiting Insert mode is by far the most common use case for <Esc>... to the point where I really wouldn't even call it "escaping" in the sense of "bailing out of a mode early".
For everything else, I'd just remap Escape to Caps Lock at the system level and call it a day. But that's just me, and even though I think the Touch Bar is nifty, I definitely get where some folks' annoyance is coming from.
For visual mode, apparently I just press v again. (I had to try it and see if I was subconsciously triggering Esc).
I had already weened myself off the Esc key, so the touchbar isn't that big a deal for me (though, i dont really ever use it). The terrible keyboard reliability is much worse, ugh.
I know I just rephrased the "operator pending mode" in a more elaborate manner but I am curious how you handle this case? Do you press Esc? Or do you go ahead with the delete anyway and then press 'u' to undo the delete? Or do you have some other technique to cancel the delete operator pending?