Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by cypres on Friday October 28, 2016 @11:14AM
(#12816699)
I had no idea you could use C-[ as ESC
[ Parent
| on HN ]
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by mrweasel on Friday October 28, 2016 @11:22AM
(#12816831)
It's also a kinda crappy alternative, because it's not possible on a large number of non-English keyboard. Ctrl+c is also an option, although I think there's a slight difference.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by EdiX on Friday October 28, 2016 @11:30AM
(#12816995)
ESC is 0x1B, traditionally the CTRL key reset the two highest bit of the ASCII code, [ is 0x5B, if you reset the two highest bits of 0x5B you get 0x1B which is why ESC and CTRL-[ are the same thing.
CTRL-C is completely different.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by edoceo on Friday October 28, 2016 @11:27AM
(#12816926)
Yep, ctrl+c is different than esc
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by uw_rob on Friday October 28, 2016 @11:46AM
(#12817222)
I am on Windows and it seems that not every program accepts C-[ as ESC. However Vim in Cygwin does accept it as ESC.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by Theodores on Friday October 28, 2016 @11:41AM
(#12817167)
I wonder how many vim users have tried using CTRL + [ for the first time today. Muscle memory being what it is I fully expect that nobody will swap over to this new and improved Apple way of pressing the Escape key.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by mst on Friday October 28, 2016 @01:31PM
(#12818495)
Much to my surprise, after I was forced by circumstances to use Ctrl+[ for a month or so, I found I didn't actually want to go back to Esc.
Had it only been a week or two I suspect my muscle memory wouldn't've shifted though.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by 3chelon on Friday October 28, 2016 @11:55AM
(#12817348)
And vi too - works just fine, but you have a valid point about muscle memory, which is pretty much the only kind of memory many of us have left when it comes to vi-like editors, since the key sequences disappeared from our brains decades ago!
Re:New MacBook Pro Is Not a Laptop for Developers Anymore
by seanmcdirmid on Friday October 28, 2016 @12:32PM
(#12817770)
That is kind of cool! It is much easier to hit then ESC all the way up in the northwest corner of my keyboard.