News for hackers. Stuff that matters.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by zzzcpan on Friday October 28, 2016 @12:12PM (#12817544)
ESC key is the default in vim, most vim users do use it.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by mgkimsal on Friday October 28, 2016 @12:16PM (#12817589)
Thanks for some sanity.

The other anecdote is I've been using vim for about 15 years, and use esc daily. I am constantly in multiple vim environments - different servers, different clients, different OS, etc. I don't have the luxury of saying "I'm going to install all my default vim keybindings and plugins on every vim installation I ever use". Walking someone else over the phone who has to do vim - I need to count on some standard defaults being there, and 'esc' is one.

So yeah - some of you "power users" - fine - you've never touched ESC in 20 years - good for you. You're in the minority.

Re:New MacBook Pro Is Not a Laptop for Developers Anymore by mdemare on Friday October 28, 2016 @12:35PM (#12817810)
There are several built-in ways to get from insert mode to normal mode in vim, only one of which has now been removed.

Vim users that use escape to leave insert mode are not exactly a majority of Mac users. Also, many people have been complaining about the location of Escape for such an important command. http://stackoverflow.com/questions/4416512/why-use-esc-in-vi...

Having said that, I use Escape myself in Vim - you know what? I'll adapt.

This has nothing to do with the new MBP being unsuitable for developers. This is about power users being forced to abandon ingrained habits.

Re:New MacBook Pro Is Not a Laptop for Developers Anymore by dunham on Friday October 28, 2016 @01:00PM (#12818125)
I've been using vi for over 20 years, but not a power user or anything (emacs for code, vi for quick edits), and have no idea how to use it without esc. Did vim change something? How do you switch modes?
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by mst on Friday October 28, 2016 @01:16PM (#12818324)
Ctrl-[ == Esc. I had to learn Ctrl-[ three years or so back due to bluetooth keyboard paired with tablet and insufficient time to troubleshoot why Esc wasn't working, and then discovered that it's actually easier on my wrists to use Ctrl-[ and never went back.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by comex on Friday October 28, 2016 @12:41PM (#12817874)
You don't need to customize your vim keybindings if you map Caps Lock to ESC at the OS level, which is a builtin preference as of macOS 10.12.1.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by st3v3r on Friday October 28, 2016 @01:26PM (#12818441)
I'd have to say that your use case is in the minority too.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by mgkimsal on Friday October 28, 2016 @02:20PM (#12819110)
just matching anecdote for anecdote...
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by palunon on Friday October 28, 2016 @12:36PM (#12817830)
Isn't ctrl-[ default on vim too ?
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by pherq on Friday October 28, 2016 @12:49PM (#12817987)
No, it's just a property of ASCII that (ctrl [) = (0x9f & 0x5b) = 0x1b = esc.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by sksksk on Friday October 28, 2016 @12:45PM (#12817943)
I use vim, I just assumed that when you open Terminal, a virtual escape key would appear in the touch bar. It'd still be in the corner, so fitts law would still apply, and it'd be easy to find.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by collinmanderson on Friday October 28, 2016 @05:49PM (#12821051)
Yes, this is what I assumed too. Is there any proof that this isn't the case? I'm not sure what the worry is about.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by mozumder on Friday October 28, 2016 @12:25PM (#12817702)
For what commands? I'm trying to look up vim commands that would use the ESC key, and I only see one: https://www.fprintf.net/vimCheatSheet.html#select http://tnerual.eriogerg.free.fr/vimqrc.html

I'm not even a power user, & after 25 years, I just know the basic few commands that you need to do anything - insert, delete, search/replace, save, & quit.

I feel like I'm taking crazy pills!

Re:New MacBook Pro Is Not a Laptop for Developers Anymore by Falcorian on Friday October 28, 2016 @12:34PM (#12817799)
ESC is the key that (roughly) takes you back to normal mode from insert mode, visual mode, etc. If you aren't using it, then you're either using one of the other ways to get back to normal mode (like CTRL-[), or you are using Vi in a very non-standard way.

See, for example: https://en.wikipedia.org/wiki/Vi#Interface

Re:New MacBook Pro Is Not a Laptop for Developers Anymore by blowski on Friday October 28, 2016 @12:34PM (#12817803)
To switch modes from insert back to normal mode. I assumed ESC was the second key any Vim user used, just after `i`.
Re:New MacBook Pro Is Not a Laptop for Developers Anymore by bitbiter on Friday October 28, 2016 @12:37PM (#12817835)
From the docs: http://vimdoc.sourceforge.net/htmldoc/insert.html#i_%3CEsc%3...

End insert or Replace mode, go back to Normal mode. Finish abbreviation.

Note: If your <Esc> key is hard to hit on your keyboard, train yourself to use CTRL-[.