Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the Select Font... dialog of gVim, there's a link at the lower left that says Show more fonts. When I click it, I'm simply taken to the Fonts folder in Control Panel. How can I use that to set a font for gVim, if I wish to choose a font that is not among the short list in the dialog itself?

share|improve this question
add comment

2 Answers 2

You can set the 'guifont' option yourself, e.g. in your ~/.vim/vimrc or through Vim's command line.

For example:

let &guifont="DejaVu Sans Mono:h9"

set guifont=Consolas:h10

Note that using variable-width fonts in Vim is not going to work well. That's why the list filters them out.

share|improve this answer
    
Oh, thanks, I was always puzzled by why the list was so short, this makes sense. Setting guifont to a variable-width font manually also seems to change nothing. By the way, is the 'Show more fonts' option useless then? Any idea what its intended purpose was? –  sundar Aug 31 '13 at 16:28
add comment

Which fonts are available and what is used as a fallback for glyphs that are not contained in the selected font depends on the platform.

On Windows, currently only fixed-width fonts are supported; the font selector therefore only shows those. As you have already noticed, it also doesn't help to :set guifont= to them directly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.