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
.)
source share