On 09/02/12 00:14, Israel Chauca F. wrote:
Hi,
I'm trying to use some mappings with these characters (referred to me as german
quotes):
char UTF-8 Code
„ E2 80 9E
“ E2 80 9C
But the mappings don't expand when they are the first char of the LHS of the
mapping. I have tested the following cases (gvim -N -u NONE -U NONE and vim -N
-u NONE):
imap “ z<-- does not expand
imap ” y<-- does not expand
imap a“ x<-- expands
imap a” w<-- expands
imap “a v<-- does not expand
imap ”a u<-- does not expand
imap<Char-0x201E> t<-- does not expand
imap<Char-0x201D> u<-- does not expand
When I run :imap the mappings are listed.
No problem when they are on the RHS of the mapping.
Can somebody else confirm this? Is this expected?
Cheers!
Israel
I confirm the problem.
After
:imap “ Hello
hitting “ in Insert mode inserts “ not Hello.
N.B. UTF-8 for “ (U+201C) is hex E2 80 9C
Maybe the 0x80 in the byte chain is (mistakenly) seen by Vim as a
special key preventing the expansion of the mapping.
Best regards,
Tony.
--
When someone says "I want a programming language in which I need only
say what I wish done," give him a lollipop.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php