You need to backslash all of the spaces in the font name, not just the last one.
You can
:set guifont=*
to open a font chooser with the fonts available on your system. Then after you pick one you like you can:set guifont?
to read back the value you need to put in your.vimrc
.
List of fonts available in gvim
Question
I know I can set fonts for gvim using something like set guifont=Menlo\ Regular:h14
. I have the following questions
- Is there a wiki where I can see what all fonts are supported?
- I want to set my font to "Lucida Sans Typewriter". I tried
set guifont=Lucida Sans Typewriter\ Regular:h14
, but it gave me an error when I opened a file using gvim. Error is "E518: Unknown option: Sans" - I also tried to increase the font size using
set guifont=Sans\ Regular:h14
, but looks like it is stuck at font size 11. I am trying this on macvim.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow