You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A key difference between modifiers (ctrl/meta/shift/...) and normal keys is that the former doesn't have to be released and is often more convenient.
For example, in a GUI text editor, one can <C-C> once and <C-V> multiple times to duplicate a section of text. The exact key event sequence is Ctrl.Down, C.Down, C.Up, V.Down, V.Up, V.Down, V.Up, ..., Ctrl.Up.
If one uses a similar pair of bindings in vim but with local leader (say \) in place of ctrl, the number of events will have to be nearly doubled: \.Down, \.Up, C.Down, C.Up, \.Down, \.Up, V.Down, V.Up, \.Down, \.Up, V.Down, V.Up, .... in this exact order.
Is there / could there be a way to not release normal keys and let them behave like modifiers, so that one can do \.Down, C.Down, C.Up, V.Down, V.Up, V.Down, V.Up, ..., \.Up for the example above?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A key difference between modifiers (ctrl/meta/shift/...) and normal keys is that the former doesn't have to be released and is often more convenient.
For example, in a GUI text editor, one can
<C-C>
once and<C-V>
multiple times to duplicate a section of text. The exact key event sequence isCtrl.Down
,C.Down
,C.Up
,V.Down
,V.Up
,V.Down
,V.Up
, ...,Ctrl.Up
.If one uses a similar pair of bindings in vim but with local leader (say
\
) in place of ctrl, the number of events will have to be nearly doubled:\.Down
,\.Up
,C.Down
,C.Up
,\.Down
,\.Up
,V.Down
,V.Up
,\.Down
,\.Up
,V.Down
,V.Up
, .... in this exact order.Is there / could there be a way to not release normal keys and let them behave like modifiers, so that one can do
\.Down
,C.Down
,C.Up
,V.Down
,V.Up
,V.Down
,V.Up
, ...,\.Up
for the example above?Beta Was this translation helpful? Give feedback.
All reactions