How to match keyboard shortcuts (simultaneously pressing buttons, rather than sequentially) in vim?

How to match keyboard shortcuts (simultaneously pressing buttons, rather than sequentially) in vim? Suppose I wanted to display the command :!python % <ENTER> by pressing j and k together?

I tried :map j+k :!python % <ENTER> :map jk :!python % <ENTER> and :map <jk> :!python % <ENTER> , but this did not work.

Also, which button combinations would you recommend displaying? (please do not F1 , F2 , ... there is no combination with ctrl or shift .)

+4
source share
1 answer

If using scripts is acceptable to you, then an arpeggio script that should suit your needs.

+8
source

Source: https://habr.com/ru/post/1414323/


All Articles