Vim Tips Wiki
No edit summary
 
(we already have generic font setting tips...I see nothing specific to MacOSX in this tip)
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
{{Duplicate|632|1587}}
{{review}}
 
  +
{{TipImported
{{Tip
 
 
|id=889
 
|id=889
  +
|previous=888
|title=Nicer looking fonts on MacOSX
 
  +
|next=891
|created=March 5, 2005 12:24
+
|created=March 5, 2005
 
|complexity=basic
 
|complexity=basic
 
|author=flipouk
 
|author=flipouk
 
|version=6.0
 
|version=6.0
 
|rating=74/28
 
|rating=74/28
  +
|category1=Mac OS X
|text=
 
  +
|category2=
If you set up your font for gvim on MacOSX by including a line similar to this in your $HOME/.vimrc:
 
 
}}
 
You set your font for gvim on Mac OS X by including a line like this in your $HOME/.vimrc or $HOME/.gvimrc:
  +
<pre>
 
set guifont=Monaco:h14
  +
</pre>
  +
or
  +
<pre>
  +
set guifont=Andale\ Mono:h14
  +
</pre>
   
  +
If your font doesn't look smooth, you can try adding this line to $HOME/.gvimrc:
set gfn=Monaco:h14
 
  +
<pre>
 
set antialias
  +
</pre>
   
  +
==References==
you might find that the font is ugly compared to the same font used e.g. in the terminal app.
 
  +
*{{help|'guifont'}}
 
  +
*{{help|'antialias'}}
To avoid this problem, add this line to $HOME/.gvimrc:
 
 
set antialias
 
 
(tested with vim 6.3 on MacOSX 10.3.8)
 
}}
 
   
== Comments ==
+
==Comments==
<!-- parsed by vimtips.py in 0.852893 seconds-->
 

Revision as of 18:14, 11 April 2009

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

References

Comments