Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set MacVim default font

Tags:

vim

fonts

default

How do I set the default font for MacVim?

I have tried adding the following line

set guifont = Monaco:h12 

to either of the following files:

~/.vimrc ~/.gvimrc ~/Applications/MacVim/MacVim.app/Contents/Resources/vim/vimrc ~/Applications/MacVim/MacVim.app/Contents/Resources/vim/gvimrc ~/Applications/MacVim/MacVim.app/Contents/Resources/vim/.vimrc ~/Applications/MacVim/MacVim.app/Contents/Resources/vim/.gvimrc 

I restarted MacVim, but it still won't set the default font. Anything I missed?

UPDATE: I can issue the set guifont command in runtime and it works fine. It just doesn't seem to read it off my startup files.

like image 741
Kit Avatar asked Dec 13 '11 01:12

Kit


People also ask

How do I permanently change the font in Vim?

Step 1: Select the Font Using the Standard Font Dialog 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. Select the font you want to use and close the dialog.


1 Answers

Place this in .gvimrc:

set guifont=Monaco:h12 

Note the lack of spaces around the equals sign.

like image 86
Kit Avatar answered Sep 18 '22 11:09

Kit