Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a reason I can't figure out, the Monaco font doesn't render the same at all on Mac and Linux... It's really beautiful on my Macbook but not on Linux where I use Inconsolata.

I've got a dotfiles git repository to have my config on all my computers.

How do I automatically set in my .gvimrc the font to Monaco when on Mac and Inconsolata elsewhere ?

share|improve this question
up vote 7 down vote accepted
if has("mac")
   set guifont="Monaco"
   set guifont="Inconsolata"

check also the documentation about the feature-list.

share|improve this answer
Works perfectly ! Thank you for your answer. – Skydreamer Mar 16 '12 at 15:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.