0

我在 Windows xp 上使用 gVim7.2,并将 gui 字体设置为 Consolas 11。在我的 .vimrc 中使用以下代码

:set guifont=Consolas:h11

我很好奇为什么尺寸以“h”为前缀?“h”是什么意思?

提前致谢。

4

1 回答 1

2

伊迪加斯是对的。

来自:help 'guifont'

For the Win32 GUI                   *E244* *E245*
- takes these options in the font name:
    hXX - height is XX (points, can be floating-point)
    wXX - width is XX (points, can be floating-point)
    b   - bold
    i   - italic
    u   - underline
    s   - strikeout
    cXX - character set XX.  Valid charsets are: ANSI, ARABIC,
          BALTIC, CHINESEBIG5, DEFAULT, EASTEUROPE, GB2312, GREEK,
          HANGEUL, HEBREW, JOHAB, MAC, OEM, RUSSIAN, SHIFTJIS,
          SYMBOL, THAI, TURKISH, VIETNAMESE ANSI and BALTIC.
          Normally you would use "cDEFAULT".

  Use a ':' to separate the options.
- A '_' can be used in the place of a space, so you don't need to use
  backslashes to escape the spaces.
于 2012-07-05T19:34:04.103 回答