using Consolas font in mintty breaks vim ambiwith handling

41 views
Skip to first unread message

Xuefer Tinys

unread,
Dec 25, 2013, 3:02:58 AM12/25/13
to vim_mu...@googlegroups.com
previous I post about the ambi character handling at http://vim.1045645.n5.nabble.com/wrong-handling-Chinese-quote-character-td1223424.html
it is already nicely done using "set ambiwidth=double" with is for font SimSun

however with font Consolas 12pt eith single or double ambiwidth failed to be processed correctly

software and settings to reproduce:
mintty: font set to Consolas 12 point
Cygwin x64: version as shown below:
$ uname -a
CYGWIN_NT-6.1 mOo-PC 1.7.27(0.271/5/3) 2013-12-09 11:54 x86_64 Cygwin
mintty 1.2-beta1 (x86_64-pc-cygwin)
$ LANG=C vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 13 2013 01:07:02)
Included patches: 1-1314

set ambiwidth=single (using single is correct here)
Character “

file
======== test.txt ===
中文测试1
<a>““““““““““““““““““</a>
中文测试2
中文测试3
=====================
simply move cursor from top to bottom
i get
======== test.txt ===
中文测试1
<a>““““
中文测试2
中文测试3
=====================
move cursor from bottom to top
i get
======== test.txt ===
中文测试1
中文测试2
中文测试2
中文测试3
=====================

any following condition change from above is not reproduced
a. change system to linux, using same cygwin/mintty ssh to linux, run vim under linux, vim version: 7.3 Included patches: 1-762 Modified by Gentoo-7.3.762
or b. change font to SimSun, set ambiwidth=double
Reply all
Reply to author
Forward
0 new messages