ZyX wrote:

> Consider the following command:
> 
>     vim -u NONE -c 'noremap! <expr> - "‘"' \
>                 -c 'normal i-' \
>                 -c 'wq! result.out'
> 
> result.out:
>     $ cat result.out | hexdump -C
>     00000000  c3 a2 c2 80 c2 98 0a                              |.......|
>     00000007
> 
> Tested on vim-7.3 from gentoo repos and on vim-7.3.94 (revision 
> f987220caa57). 
> Everything works fine if it is not expr mapping or if I replace «"‘"» with 
> «"\u2018"». Same issue with opening double english quote (u201C) and second 
> level opening russian quote (u201E).

Yes, that is wrong, each byte is used as a character.

-- 
hundred-and-one symptoms of being an internet addict:
84. Books in your bookcase bear the names Bongo, WinSock and Inside OLE

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui