Hacker News new | ask | show | jobs
by theodorton 3401 days ago
You can re-map the Escape key to Caps Lock. I bought the new MBP and got used to this. Although I returned it later and went back to my previous machine, I still use Caps Lock as Escape.

I'm using Karabiner Elements on Sierra.

    brew cask install karabiner-elements
Edit: I also believe it causes less strain on my fingers.
3 comments

I've already got `caps lock` mapped to `control`, mainly because of where Apple put the `fn` button.

As a heavy Vim user, I'm not looking forward to the `esc` trouble when I get my next Apple laptop.

    :inoremap kj <Esc>
You'll love it.
Oh wow. I can't believe I didn't think of it earlier! As a Vim user I've always been told it is good to swap Caps Lock and Esc, yet I haven't actually tried it due to my laziness. Probably now is the time.
Caps lock should be control, like it was when vi was invented. You can remap it under system preferences| keyboard| modifier

As for <esc>,

    :inoremap kj <Esc>
You'll love it.
You don't need third party software for this. Just look under Keyboard in System Prefs.
If a keyboard doesn't identify itself as such (I have a bluetooth keyboard that does this), you need third-party software to do it. The built-in Apple functionality only works on keyboards that say they're keyboards.