3
How can I remap the Capslock key to ESC in a Windows Cygwin shell?
Ideally I would only remap the value in Cygwin shells instead of everywhere, preserving behavior in other apps (although admittedly even in Windows I think I probably hit the Capslock key more frequently by accident than on purpose).
Even better would be something I could add to my bashrc, making it easily portable.
Background: I spend most of my time in Linux where I've used xmodmap (like this, http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_XWindows) to remap Capslock to Esc for speed and comfort with vi. This works great everywhere on those systems, i.e. in vim and also on a bash commandline. For the remaining time when I'm in Cygwin on a windows box, my muscle memory has me hitting the capslock key to ill effect!
+1 for AutoHotKey. Although it is ludicrous that remapping keys is so difficult in Windows. – Prince Goulash – 2012-11-28T13:10:33.640