0

When using the :map command, you can specify key sequences, for example <c-a> which means Ctrl+A, and it is triggered by '\x01' (represented as '^A')

However, there are combinations not possible to send by some Terminal emulators natively, like the famous Ctrl+;, and you should attribute yourself the sequence it should produce, and then you can map it in vim.

But I was wondering, maybe vim already expects some sequences to trigger a sequence, and I would like to know if one can get what sequence triggers a vim key combination (like , or etc.) ?

hl037_
  • 3,520
  • 1
  • 27
  • 58

1 Answers1

0

The ANSI escape code wikipage is explaining how these combinations work.

On Linux, you might also try the xev(1) utility.

Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547