Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of fonts available in gvim

Tags:

I know I can set fonts for gvim using something like set guifont=Menlo\ Regular:h14. I have the following questions

  1. Is there a wiki where I can see what all fonts are supported?
  2. 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"
  3. 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.
like image 293
user376507 Avatar asked Feb 19 '14 22:02

user376507


People also ask

What is the best font for Gvim?

Bitstream Vera (True Type) In the rare instances I use gvim the font has performed as expected. Sans serif and serif fonts with variable spacing are also included. DejaVu Sans Mono looks identical to Bitstream Vera Sans Mono, and has more international characters.

How do I find the font in Vim?

In Vim, pop open the GUI to select the font by typing in this command: :set guifont=* . It should open up the standard font dialog box for your platform.


1 Answers

  1. You need to backslash all of the spaces in the font name, not just the last one.

  2. 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.

like image 158
hobbs Avatar answered Oct 04 '22 11:10

hobbs