Following the answers in I have tried many varieties of setting the font
size and face in ~/.vimrc
. None of them have any effect
set guifont=Menlo:h12
set guifont=Monaco:h12
set guifont=Menlo\ Regular:h12
Note that executing
:set gfn=*
does bring up a font chooser dialog - and I am able to choose either Monaco or Menlo or many others correctly. But I don't want to have to choose every time - thus the ~/.vimrc
. What might be wrong how to fix this?
:set gfn=*
to choose one. Then see an exact name with:set gfn?
Monaco
andMenlo
do show up in the dialog - as alluded in the actual question above.:set gfn?
exactly shows after you've selected one of them? Could be, for example, "Menlo 12" instead of "Menlo:h12" etc.guifont=Menlo Regular:h14
is what shows up without actually manually setting one of the fonts. If I select one of the fonts from the chooser that does set it properly. But the question above is about avoiding that for each fileset guifont=Menlo\ Regular:h12
works fine for me in my.vimrc
. Does it work for you if you run it manually from the command-line after start up? I presume other settings in your vimrc are taking effect? What's the output of:verbose set guifont?
after start up?