I'm trying to set a key mapping in vim. I know that <c-j> means Control-J. What is the text representation of the capslock key? I tried <capslock> but that does not work.
Is there a list of these representations somewhere?
Probably best like this: ⇪That's the symbol on Mac keyboards. It's called "UPWARDS WHITE ARROW FROM BAR" and its Unicode key is
For a list of common OS X key symbol, see: The Macintosh Biblioblog: Special Key Symbols
For more info, see: |
|||||||||||||||||
|
|
You cannot map Caps-Lock in Vim—neither in console/terminal based Vim, nor the GUI based gVim, because Vim simply cannot "see" when that key is pressed. If you really want to do this, you will probably have to find out how to get your OS to change the meaning of Caps-Lock to something else that Vim can see, but you will lose it for Caps-Lock. |
|||
|
|
|
Is it truly necessary to do this? If in the instructions show text in upper case, this should suffice. |
|||
|
|
:help key-notationinto Vim for the list of special keys Vim understands. – Chris Johnsen Mar 14 '12 at 6:31