[英]gVim how to set guifont bold attribute
I am using gvim 7.3 on Windows 7. I want to set the "Courier_New" font in bold style. 我在Windows 7上使用gvim 7.3。我想以粗体设置“Courier_New”字体。 How to do that? 怎么做? I tried the following but it failed. 我试过以下但是失败了。
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=Courier_New\ Bold:h12:cANSI
endif
endif
An almost exactly identical example is available at the bottom of :help 'guifont'
: 底部有一个几乎完全相同的例子:help 'guifont'
:
:set guifont=courier_new:h12:w5:b:cRUSSIAN
so the following should do what you want: 所以以下应该做你想要的:
:set guifont=courier_new:h12:b:cANSI
Always start with :help
. 始终从:help
开始。
Additionaly, you can use :set guifont=*
to open the font choosing dialog, select your font, and then use :set guifont?
另外,您可以使用:set guifont=*
打开字体选择对话框,选择您的字体,然后使用:set guifont?
to see how the option was set. 看看如何设置选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.