Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to remap the Caps Lock key to some other unused key (in a system-wide fashion).

Being a MacVim.app user, I always liked to idea of remapping the Caps Lock key to some other key such as the "Help" key or the "End" key in order to use that piece of keyboard real estate to enter and exit insert mode.

Previously, in Mac OS X Snow Leopard, several options existed to do this, such as the excellent PCKeyboardHack which enabled the user to chose the key code that the caps lock key would send to the OS and operated at the driver level it seems. Or the other tool called DoubleCommand. None of these options work anymore under Mac OS X Lion (Gold Master). I tried to install them none the less and ended up with a kernel panic.

The "Keyboard" preference pane in the system preferences of both versions of Mac OS X has the possibility of remapping the caps lock key built-in as you can see in these pictures. But only to one of the other three modifier keys: namely "Control", "Command" and "Option". This is evidently not sufficient for creating a macro in vim. The Caps Lock key needs to be remapped to some other non-modifier key.

Other answers found in previous questions often contain a suggestion to use the Ukulele tool. This program has never had the ability to remap the Caps Lock key.

Other keyboard modifying software such as Consistent Keyboards has similar functionality but will not solve the problem.

Any help greatly appreciated !

share|improve this question
add comment

3 Answers

up vote 14 down vote accepted

PCKeyboardHack for Lion released and works great!

share|improve this answer
add comment

PCKeyboardHack for Lion is done with development. Works Great!!!

PCKeyboardHack Support

share|improve this answer
add comment

KeyRemap4MacBook is supposed to work with Lion.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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