Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
Duplicate question on unix.stackexchange.com/questions/93975/…; please don't spam multiple sites with the identical question! –  Ingo Karkat Oct 8 '13 at 8:10
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.