About line wrap when both English and Chinese Chars are present

35 views
Skip to first unread message

KL

unread,
Jul 4, 2009, 3:29:04 AM7/4/09
to vim_multibyte
Hi,

I hope this is the correct place to bring up this question. I love vim
very much! But I think that Vim's localization is still not perfect.

http://lh6.ggpht.com/_fHAIwtuRTpY/Sk8EiZSN0gI/AAAAAAAAABg/435m_aPipNA/LineWrap.png

Please take a look at the screenshot. The line should wrap at a
Chinese character which hits the right edge of the window. Vim does it
right for those lines with ONLY chinese chars. However, obviously when
an English word is present in the line, Vim does the wrong thing: it
considers the English word AND the following Chinese chars as
unsplittable.

This is because I set "lbr" in Vim. Unsetting "lbr" will solve the
problem BUT when the English word hits the edge it will be split right
in the middle, which is not what I want, either.

Any suggestions?

Thanks!

KL

Bram Moolenaar

unread,
Jul 5, 2009, 6:41:19 AM7/5/09
to KL, vim_multibyte

KL wrote:

[ Please mention your name ]

Perhaps this code will help: http://vimgadgets.sourceforge.net/liblinebreak/


--
ERROR 047: Keyboard not found. Press RETURN to continue.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages