Vim Tips Wiki
(Move categories to tip template)
(Added tip for Monaco font on OSX and antialias'ing)
Tags: Visual edit apiedit
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{Duplicate|632|1587}}
 
{{TipImported
 
{{TipImported
 
|id=889
 
|id=889
 
|previous=888
 
|previous=888
|next=890
+
|next=891
 
|created=March 5, 2005
 
|created=March 5, 2005
 
|complexity=basic
 
|complexity=basic
Line 8: Line 9:
 
|version=6.0
 
|version=6.0
 
|rating=74/28
 
|rating=74/28
|category1=Fonts
+
|category1=Mac OS X
|category2=Mac OS X
+
|category2=
|category3=vimrc
 
 
}}
 
}}
 
You set your font for gvim on Mac OS X by including a line like this in your $HOME/.vimrc or $HOME/.gvimrc:
 
You set your font for gvim on Mac OS X by including a line like this in your $HOME/.vimrc or $HOME/.gvimrc:
 
 
<pre>
 
<pre>
 
set guifont=Monaco:h14
 
set guifont=Monaco:h14
Line 23: Line 22:
   
 
If your font doesn't look smooth, you can try adding this line to $HOME/.gvimrc:
 
If your font doesn't look smooth, you can try adding this line to $HOME/.gvimrc:
 
 
<pre>
 
<pre>
 
set antialias
 
set antialias
 
</pre>
 
</pre>
  +
If you're using Monaco on OSX you might want to try disabling antialias:
 
  +
set noantialias
 
==References==
 
==References==
 
*{{help|'guifont'}}
 
*{{help|'guifont'}}
Line 33: Line 32:
   
 
==Comments==
 
==Comments==
Thanks for the improvements to the tip. I standardised things a little - change if you like. I agree there should be a Fonts category, although I can't think exactly how to organise it at the moment, so I'll leave the job of creating that category for another time.
 
 
However, I don't think a vimrc category is useful here (nearly every tip ''uses'' vimrc, and it wouldn't be helpful to put them all in that category), so I removed that.
 
 
{{Todo}}
 
Remove my above temporary comment after 2008-04-01 --[[User:JohnBeckett|JohnBeckett]] 00:21, 16 March 2008 (UTC)
 
 
----
 

Revision as of 20:51, 16 March 2015

Duplicate tip

This tip is very similar to the following:

These tips need to be merged – see the merge guidelines.

Tip 889 Printable Monobook Previous Next

created March 5, 2005 · complexity basic · author flipouk · version 6.0


You set your font for gvim on Mac OS X by including a line like this in your $HOME/.vimrc or $HOME/.gvimrc:

set guifont=Monaco:h14

or

set guifont=Andale\ Mono:h14

If your font doesn't look smooth, you can try adding this line to $HOME/.gvimrc:

set antialias

If you're using Monaco on OSX you might want to try disabling antialias:

set noantialias

References

Comments