I mapped the ctrl cache lock key with the following command on linux:
setxkbmap -option ctrl:nocaps
I really like this mapping and you want to keep it, but I would also like to map the header lock key to Escape when I am inside vim. But when I try to match it with :map <C> <Esc>or similar, it doesn't seem to work, apparently because the ctrl key is special and it needs a second key to fire the key event.
Is there any way to achieve the above?
source
share