Simple AutoHotkey script to remap the completely useless caps lock key to ctrl, as originally intended (see IBM PC/XT and some history at CAPSoff.org) and also escape, making both more accessible. This lets you access both these keys from the keyboard home row, significantly improving the workflow while programming. This is especially usefull in VIM and programs with VIM-like keybindings, for example Sublime Text (activate vintage-mode) and the JetBrains suite (supported by plugin).
Note: This is for windows only.
- For linux you map caps to ctrl and then use XCAPE, see this thread.
- For Mac you can use my carabiner script
- Other solutions are available for other platforms and some google-fu should point you in the right direction.
Simply load up the script in AutoHotkey. Easy as pie!
I've also compiled the script to a portable binary. Feel free to put it on a thumb-drive or cloud storage (recommended) such as Google Drive to make it accessable from all your windows based devices.
- Windows only
- AutoHotkey
- The binary has no dependencies but will of course only run under Windows.
When caps lock is pressed together with another key it will act as ctrl. However when tapped (pressed and released on its own) it will instead mimic a press on the esc-key.
Originally written by fwompner(fwompner gmail com) and found at vim.wikia.com