tags:

views:

350

answers:

3

Is it possible to map a vim command to a combination of keys involving more than one modifier? For example: ctrl-alt-v.

As far as I can tell, the only modifier key that can be used in combination with another is shift. e.g. <C-v> and <C-V>. Or am I missing something?

+5  A: 

Yeah, you would map <C-A-v> or <C-M-v> (A, Alt, and M, Meta are equivalent concepts). See vim's angle bracket notation docs.

chaos
Thanks. Just what I was looking for!
nelstrom
+1  A: 

They can be combined just fine, like this for example: <C-M-v> maps CTRL-Alt-v.

Meta (Alt) is M, Shift is S, and CTRL is C.

tobiasvl
+1  A: 

There's also this script (arpeggio) that allows you to use two or more simultaneously pressed keys (any keys, not just modifiers keys like shift, alt, etc.) in your mappings.

Cool, I love the name. Can I use it to play Bach?
nelstrom