Meino Christian Cramer wrote:
[...]
Hi Tony,
thanks for your explanations ! :)
Ctrl-v gives me the "raw values" (that is the binary representation)
of the keycodes. But I wanted the way of "name" those keysequences
when using in vim scripts displayed.
Keep hacking!
mcc
Yes, that's what I said. Let's say you hit (in Insert mode) Ctrl-V
followed by F1.
In gvim, you get <F1> (less-than, eff, one, greater-than). In console
Vim, it depends on the terminal. I get ^[OP (Control-left-bracket oh
pee) in konsole and ^[[[A (control-left-bracket left-bracket
left-bracket aye) in /dev/tty (the pure-text non-X terminal). [All this
with a single executable which can run as a Gnome2 GUI or as a console
utility on Linux.]
When I hit (still in Insert mode) Ctrl-K and then F1, I get <F1> in all
three.
Best regards,
Tony.