Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.