So, it's rather a complicated, half-baked solution or installing a third-party piece of hackery. I didn't get it to work with vim in the Terminal and I haven't tested it with MacVim. You can then map the Help and the Insert key to Esc in vim. But if it is, it will be treated as the insert key, which you probably don't use anyway, since you ask about remapping your Caps Lock to prevent stretching your hands ) The trick is to map the Caps Lock key to the Help key (code 6), which isn't on most keyboards. Also, you can of course use the Property List Editor instead of going through the XML conversion steps. As addendum to that hint I suggest you first set Caps-Lock to None in the System Preferences, then you only need to change one value in the. The process is described in this article. OS X supports mapping the Caps Lock key to a whole bunch of keys, but you have to do it 'by hand', editting. This solution doesn't involve patching the keyboard driver, but gives you a Vim specific solution. Enable ‘Change Caps Lock’ and set the keycode to 53.Go to PCKeyboardHack in System Preferences.Download PCKeyboardHack and install it.I've placed this content into a file located at ~/Library/LaunchAgents/ and then executed: launchctl load Put these codes or'd with the hex value 0x700000000 in the source and dest like this: hidutil property -set ' If that sounds good to you, take a look at hidutil.įor example, to remap caps-lock to escape, refer to the key table and find that caps-lock has usage code 0x39 and escape has usage code 0x29. No need to install any 3rd-party crap like PCKeyboardHack / Seil / Karabiner / KeyRemap4MacBook / DoubleCommand / NoEjectDelay.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |