Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It's posible to map shift + shift on vi?

Tags:

vim

I'm trying to configure a key-mapping using shift+shift, is this posible ?

I have tried:

<S-S> But this maps shift + S
<S><S> and this that maps to unknown 
like image 980
atomsfat Avatar asked May 12 '14 22:05

atomsfat


1 Answers

You cannot map to modifier keys (like Ctrl, Shift, Alt) alone; they can only be used in combination with other keys that represent printable characters (like <C-a> = Ctrl + A). That's mostly due to the fact that terminals do not send keypress events for modifier keys alone. There are unfortunately even limitations in those combinations (also in GVIM). Some key combinations, like Ctrl + non-alphabetic cannot be mapped, and Ctrl + letter vs. Ctrl + Shift + letter cannot be distinguished.

like image 132
Ingo Karkat Avatar answered Nov 02 '22 06:11

Ingo Karkat