Re: 请教:Vim 显示 法语 字母难看
发表于 : 2009-06-06 19:50
是呢。roylez 写了:恩,不用vimperator食指会断的。
是呢。roylez 写了:恩,不用vimperator食指会断的。
请问这位仁兄,翻页到底/到头的时候,如何让屏幕不闪?恩,不用vimperator食指会断的。
我的...不闪。你的...也许是显卡问题sarrow 写了:请问这位仁兄,翻页到底/到头的时候,如何让屏幕不闪?恩,不用vimperator食指会断的。
Vimperator 用起来还是不如vim方便,哎。
代码: 全选
set ambiwidth=single
代码: 全选
*'ambiwidth'* *'ambw'*
'ambiwidth' 'ambw' string (default: "single")
global
{not in Vi}
{only available when compiled with the |+multi_byte|
feature}
Only effective when 'encoding' is "utf-8" or another Unicode encoding.
Tells Vim what to do with characters with East Asian Width Class
Ambiguous (such as Euro, Registered Sign, Copyright Sign, Greek
letters, Cyrillic letters).
There are currently two possible values:
"single": Use the same width as characters in US-ASCII. This is
expected by most users.
"double": Use twice the width of ASCII characters.
There are a number of CJK fonts for which the width of glyphs for
those characters are solely based on how many octets they take in
legacy/traditional CJK encodings. In those encodings, Euro,
Registered sign, Greek/Cyrillic letters are represented by two octets,
therefore those fonts have "wide" glyphs for them. This is also
true of some line drawing characters used to make tables in text
file. Therefore, when a CJK font is used for GUI Vim or
Vim is running inside a terminal (emulators) that uses a CJK font
(or Vim is run inside an xterm invoked with "-cjkwidth" option.),
this option should be set to "double" to match the width perceived
by Vim with the width of glyphs in the font. Perhaps it also has
to be set to "double" under CJK Windows 9x/ME or Windows 2k/XP
when the system locale is set to one of CJK locales. See Unicode
Standard Annex #11 (http://www.unicode.org/reports/tr11).
不用感谢我了。得感谢 xbeta(http://xbeta.info),不然我也不会知道还有这样的选项。nickleeh 写了: 太感谢 lilydjwg 和 roylez 了。
roylez 写了:
这两个我基本不用呢。帮不上你。nickleeh 写了:roylez 写了:
请教roylez:
我又有个问题:Vim不认中文的标点符号【。!?】,也就是说,没有办法用
( Previous sentence
) Next sentence
请问有什么办法吗?
我也基本不用这两个。可以用b和e代替,因为它们(貌似)认识中文标点。nickleeh 写了:roylez 写了:
请教roylez:
我又有个问题:Vim不认中文的标点符号【。!?】,也就是说,没有办法用
( Previous sentence
) Next sentence
请问有什么办法吗?
lilydjwg 写了:我也基本不用这两个。可以用b和e代替,因为它们(貌似)认识中文标点。nickleeh 写了:roylez 写了:
请教roylez:
我又有个问题:Vim不认中文的标点符号【。!?】,也就是说,没有办法用
( Previous sentence
) Next sentence
请问有什么办法吗?
或者,有兴趣的话可以自己写个script搞定。
代码: 全选
nmap ( ?[。?!.?!]<CR>