Yuri Vic wrote:

> I have this text:
> 阿斯達abc
> Человек
> 
> It's hex is here:
> 00000000  e9 98 bf e6 96 af e9 81  94 61 62 63 0a d0 a7 d0  |.........abc....|
> 00000010  b5 d0 bb d0 be d0 b2 d0  b5 d0 ba 0a              |............|
> 
> Command:
> $ vim +1 "+normal 3|"
> wrongly places the cursor on the second (Mandarin) character.
> 
> But command:
> $ vim +2 "+normal 3|"
> correctly places cursor on the third (Cyrillic) character

The | command moves to a screen column.  Since the Chinese characters
are double width, the third screen column is in the second character.
This it looks correct to me.

-- 
ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot.
        King of all Britons, defeator of the Saxons, sovereign of all England!
   [Pause]
SOLDIER: Get away!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui