Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 '13 at 19:25
Duplicate question on…; please don't spam multiple sites with the identical question! – Ingo Karkat Oct 8 '13 at 8:10

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.