Inspired by this question. I would like to remap Caps Lock to escape, but only when I am in vim. I would like to keep Caps Lock untouched while not in vim.
feedback
|
|
If modifier keys are pressed they are not passed to applications by the OS before any other key is pressed. Therefor it is not possible to map a single capslock, shift or ctrl key press in applications without remaping it globaly. | |||
|
feedback
|
|
This may not be the answer you're looking for, and I don't want to start a religious debate, but this is what emacs is good for. As with emacs, you can remap keys and write your own extensions for it. I don't think this is possible right off the bat with vim. | |||||
feedback
|
|
I tried doing the same thing and could not find a way to do it. It seems that Vim doesn't see CapsLock as a modifier key, so you can't create a mapping for it. | |||
|
feedback
|
