When I map <M-b>, a character "â" shows up, instead of the expected rhs.
But, if I map ^]b directly, everything works, which is very interesting.
What I did:
1. vim
2. :set <M-b>=^[b
3. :imap <M-b> YYYY
4. i, goto insert mode
5. press <M-b>, nothing happened on the screen
6. press <M-b>, still nothing
7. press <M-b>, character "â" was inserted
What I expected:
A sequence of YYYY was inserted
Workaround:
1. vim
2. :imap ^[b YYYY
3. i, goto insert mode
4. press <M-b>, a sequence of YYYY was inserted
Reproduce: everytime
1. Vim 7.1.242
1.1 set esckeys
2. Linux, Fedora Core 7
2.1 Virtual Terminal, TERM=linux
2.2 setmetamode esc
It seems vim treats assigned <M-b> and ^]b differently, but actually
<M-b> has the value of ^]b. Is it a contradiction?
Note: ^]b is a sequence of escape and letter "b".
Thanks in advance,
Cheng
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment