wrong handling Chinese quote character

14 views
Skip to first unread message

moo moo

unread,
Apr 13, 2010, 11:58:32 PM4/13/10
to vim_multibyte
Chinese quote “ and many other characters
let's say "[a]" is the cursor on character "a"
for line:
-> [a]bc“1”
l
-> a[b]c“1”
l
-> ab[c]“1”
l
-> abc[“]1”
l
-> abc[“]1” <- this is wrong, the cursor should move onto "1" already
l
-> abc“[1]” <- now here we are on "1"

“ is actually 1 character, vim somehow treat it as 2 characters

terminal: mintty
os: cygwin or gentoo linux
LANG=zh_CN.UTF-8
vim encoding=utf-8 (reproduced with GBK too)
vim fileencoding=utf-8 (reproduced with GBK too)

utf-8 code of the quote
$ echo -n “ | xxd
0000000: e280 9c ...
utf-8 code of the testing text
$ echo -n abc“1” | xxd
0000000: 6162 63e2 809c 31e2 809d abc...1...

and btw, when i start "v" into visual mode after the "wrongly handled"
character, some character is redrawn partly in the line, it's redrawn
in wrong column (x position). i think that's the same problem. we'll
discuss that later if it's still reproduced after this bug is fixed

winterTTr

unread,
Apr 14, 2010, 4:13:28 AM4/14/10
to vim_mu...@googlegroups.com

try to:
set ambiwidth=double


--
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

moo moo

unread,
Apr 14, 2010, 7:00:22 AM4/14/10
to vim_multibyte
>
> try to:
> set ambiwidth=double
cool, it's a feature not a bug. thanks
Reply all
Reply to author
Forward
0 new messages