How to set a default font (AKA guifont) in your .gvimrc


From : How to set default macvim or gvim font size

A tip on editing your .gvimrc options file, for gvim or macvim… if you want to set a guifont, but the name contains spaces, you’ll need to escape the spaces to get the font to work.

For example, normally (at least on macvim), if you wanted to use, say, Monaco size 12 as a GUI font, you would add a line to your gvimrc saying

set guifont=Monaco:h12

(Naturally, you could also :set this from within vim.)

If you wanted to use Bitstream Vera Sans Mono instead, you would escape the spaces with a backslash, thusly:

set guifont=Bitstream\ Vera\ Sans\ Mono:h12

Warning: count(): Parameter must be an array or an object that implements Countable in /home/public/blog/wp-includes/class-wp-comment-query.php on line 399

There is 1 comment in this article:

  1. 5/08/2011Taufik say:

    Thanks, really helpful. Saved me a lot of hair-pulling :)

Write a comment: