0

Can I use caps lock for changing language in VIM intead of Ctrl-6 in case of keymap=russian-jcukenwin?

How can I do it?

Maybe smth like mapping in $VIMRC file? How can I map caps lock? Is it possible?

2
  • You can't do it from within Vim because it doesn't "get" the Caps Lock key. But you can probably remap that key to some other key system-wide and use that key to create a mapping in Vim. But we don't even know what OS you use.
    – romainl
    Oct 7, 2013 at 19:25
  • 2
    Duplicate question on unix.stackexchange.com/questions/93975/…; please don't spam multiple sites with the identical question! Oct 8, 2013 at 8:10

1 Answer 1

2

The Caps Lock is a special key; it cannot be mapped in Vim itself. But if you use operating system-specific means / tools to remap that key to another (unused, e.g. <F13>, which rarely exists on a keyboard) one, you can use that key in an ordinary Vim mapping.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .