Hi,

This kind of displaying error can happen by the ambiguous width characters.
This can happen when the character width defined by the selected font and 
the width that Vim is recognizing don't match.
(For console version of Vim, the width that the terminal emulator is 
recognizing must also match.)

Normally, this can be controlled by the 'ambiwidth' option.
If you use CJK fonts, setting this to "double" might be better.

KaoriYa Vim provides an additional setting to the 'ambiwidth' option.
It provides ambiwidth=auto setting which automatically recognize the width 
from the actual font.
(ambiwidth=auto is the default setting for KaoriYa Vim.)

If you use DirectWrite, the issue can be more complicated.
If a glyph isn't found in the current font, Windows automatically find the 
glyph from other fonts.
E.g. If you select a double-width font, but if the glyph from a 
single-width font is used,
the width can be changed.
(KaoriYa Vim's ambiwidth=auto patch doesn't support DirectWrite, but I have 
an additional patch to support it.)

If you need a fine tuning, you can also use setcellwidths().

Regards,
Ken Takata

2023年12月18日月曜日 10:01:58 UTC+9 Korean user1 (in CJK):

> In CJK, this bug is very old, but it has not been fixed yet. I believed 
> someone would be interested in it and solve it, but until now I'm inquiring 
> here because no one seems to be interested.
>
> As far as I know, in text editors like vim Only fixed-width fonts are 
> available.
>
> In the CJK area, CJK characters and Unicode symbols It is called 
> 'full-width character', and in comparison, English characters are called 
> 'half-width characters'.
>
> In other words, the width of the CJ[image: 
> vim-input-unicode-symbol-halfwidth-problems-korean.gif]K character is 
> exactly twice the width of the English character. In addition, the 'Unicode 
> symbol' should also be marked twice as wide. In vim, however, most of the 
> 'unicode symbols' are treated as half-width characters and are not 
> displayed correctly.
>
> I have attached a GIF animation file for easy understanding.
>

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/a020d4c3-8fb3-48f1-9544-a6117b5d2c9cn%40googlegroups.com.

Raspunde prin e-mail lui