Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make vim recognize CJK characters and render them larger than ASCII?

Tags:

vim

font-size

cjk

I am using vim to work on both Chinese and Western text. The default font size is okay for Western text, but the Chinese characters, while readable, are too small for my taste. Can I tell vim to render CJK fonts with, say, 14pt while not affecting the font size of all other text?

Thanks for your ideas/solutions!

Guba

like image 433
Guba Avatar asked Jan 31 '26 10:01

Guba


1 Answers

If you are using gVim try to set guifontwide to different font. You can try MS Mincho or MS Gothic on Windows.

Note, that on all GUI versions but GTK+ 2 guifontwide option is used only when encoding is set to utf-8 and guifontset is empty or invalid. More info in :help guifontwide.

like image 68
Paul Avatar answered Feb 03 '26 06:02

Paul