我在Windows 7上使用gvim 7.3.我想以粗体设置"Courier_New"字体.怎么做?我试过以下但是失败了.
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
Run Code Online (Sandbox Code Playgroud)
底部有一个几乎完全相同的例子:help 'guifont'
:
:set guifont=courier_new:h12:w5:b:cRUSSIAN
Run Code Online (Sandbox Code Playgroud)
所以以下应该做你想要的:
:set guifont=courier_new:h12:b:cANSI
Run Code Online (Sandbox Code Playgroud)
总是先开始:help
.
另外,您可以使用:set guifont=*
打开字体选择对话框,选择字体,然后使用:set guifont?
以查看选项的设置方式.