Hi all,
i have mapped my caps lock key to ctrl with the following command under linux:
setxkbmap -option ctrl:nocaps
I really like this mapping and want to keep it, but I also would like to map the caps lock key to Escape when I am inside vim. But when I try to map it with :map <C> <Esc>
or similar it does not seem to work, presumably because the ctrl key is special and needs a second key to to trigger an key event.
Is there any way I can achieve the above?