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.
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.
Place this in .gvimrc
:
set guifont=Monaco:h12
Note the lack of spaces around the equals sign.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With