Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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"
else
   set guifont="Inconsolata"
endif

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .