Sunday, July 10, 2011

Re: vim map key can not work

Reply to message «vim map key can not work»,
sent 12:59:19 10 July 2011, Sunday
by Tong Zhang:

> PS. I am using vim 7.3.35 on linux mint 11.
You posted here least significant part of my request for purpose, didn't you?
You still need to provide an exact command you used to create a mapping («and
also script that reproduces the problem (starting with `vim -u NONE'»). I don't
have a mapping for <F5>, but when I press it vim is not displaying internal
representation of this key like you report and if it failed to recognize <F5> as
<F5> it would also do something different from displaying <80>k5 (exact behavior
depends on the terminal).

Original message:
> Hello!
> A weird problem confused me for a long time, that is: when I map F5 to
> some vim cmd, but when I press F5 in vim, it just display <80>k5, and it
> won't evoke the mapped cmd, so HOW can I fix it?
> Thanks very much!
>
> PS. I am using vim 7.3.35 on linux mint 11.

No comments: