1

I wanted to know how I could map the escape key to the right "alt" key on the mac keyboard ? Is that possible ?

  • 3
    I don't think so. I'm pretty sure that Vim can't tell between left and right alt, and even if it could I don't think you can map things just to alt. You need it to be alt + another key. – Tumbler41 May 10 '16 at 18:20
  • 2
    I second @Tumbler41: vim can't make a difference between right and left alt keys and I think I've seen other question about mapping something to alt only and if I remember well the answer were to make the terminal do that. – statox May 10 '16 at 18:30
  • It's not vim-specific but you can have a look at pqrs.org/osx/karabiner/seil.html.en, it's useful for remapping specific keys. e.g. remapping caps lock with <esc> or <ctrl> – nobe4 May 10 '16 at 22:05
  • Yep thats what I am using and it does the job. – Rajeshwar May 11 '16 at 15:08
1

For the Mac (pre Sierra) you can install Karabiner which lets you do that and more.

Look for Option_R to Escape.

If you already have Sierra you need to wait for the Karabiner update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.