添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

i have installed vim for xp ,there is a file _vimrc in C:\Vim ,i have set font in _vimrc :

set guifont=Bitstream_Vera_Sans_Mono:h11:cANSI

when i open vim ,the setup can not work ,when i open gvim ,the setup can work . what is the matter? the configuration i write in _vimrc can work perfectly in gvim when i open it ,why it can not work in vim? In my gvim and cmd ,i can see Bitstream_Vera_Sans_Mono font in screen ,and my active console code page is set to be 437, vim can't use Bitstream_Vera_Sans_Mono font ,why?

If you set the font with the GUI like in the picture, you can see exactly what you need to type by using :set guifont?. – Pandu Nov 16, 2013 at 11:16

...where :h11, specifies a height of 11 points.

N.B: A _ can be used in the place of a space, so you don't need to use backslashes to escape the spaces.

Reference

  • :help 'guifont'
  • Notes, following update to question

    'guifont' only works on Vim's GUI (i.e. gvim) and not on a console (or terminal) vim instance. Vim has no control over the font of the terminal in which it is running.

    If you wish to change the Windows XP(!) console font, see How to change the Windows XP console font? on SuperUser.

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.