Search code examples
vimremapcapslock

Vim remap: Where does the Capslock go?


Ok, I'm convinced that I need remap Esc in vim. My choice is to use Capslock as common. But my question is: Where does the Capslock functionality go?

  • To Esc place?
  • Don't use at all (use selection+'U' to uppercase)?
  • Any other?

What do you think it's more productive?

Thanks in advance.


Solution

  • I use AutoHotKey (on Windows) to re-map capslock, mainly because I sometimes hit it accidentally. Then I use shift-capslock to get the normal capslock functionality.

    I think it would be weird for capslock to work as capslock in some programs but not others.

    AutoHotKey mappings to do this (capslock -> esc, shift-capslock -> capslock):

    CapsLock:: Send, {ESC}
    +CapsLock:: Send, {Blind}{CAPSLOCK}