在vim中以h为前缀的字体大小是多少?

时间:2012-07-04 11:31:32

标签: vim

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

  

:set guifont=Consolas:h11

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

提前致谢。

1 个答案:

答案 0 :(得分:2)

Idigas说得对。

来自: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.