Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to map Caps Lock to Esc for Vim in Mountain Lion when keyremap4macbook doesn't work?

I use vim to develop on my mac and I updated to Mountain Lion yesterday. I was using http://pqrs.org/macosx/keyremap4macbook/ this to remap the escape key's function to caps lock to switch between edit and insert modes. I can't really functionally develop in vim without this and it doesn't seem to work in Moutain Lion. I really need a solution soon!

Thanks a lot guys.

like image 538
pachun Avatar asked Jul 27 '12 03:07

pachun


1 Answers

Found this: https://github.com/tekezo/PCKeyboardHack/issues/8#issuecomment-7359829

It worked perfectly for me.

I had grown so accustomed to using caps-lock as esc, that it was killing my productivity until I found this.

like image 98
Daniel Bushman Avatar answered Nov 15 '22 10:11

Daniel Bushman