Wikia

Vim Tips Wiki

Changes: Turn on syntax coloring in Mac OS X

Edit

Back to page

(Comments)
(Comments)
Line 28: Line 28:
   
 
----
 
----
For Mountain Lion use:
+
For Mountain Lion in vim use:
   
set term=builtin_ansi
+
<pre>
  +
:set term=builtin_ansi
  +
:syntax on
  +
</pre>
   
syntax on
+
Or in your ~/.vimrc:
  +
  +
<pre>
  +
set term=builtin_ansi
  +
20 syntax on
  +
</pre>
   
 
----
 
----

Revision as of 17:27, October 9, 2012

This tip is deprecated for the following reasons:

The suggestions in this tip are no longer necessary. Vim syntax coloring in a terminal window has worked fine since OS X Panther.

Tip 283 Printable Monobook Previous Next

created July 11, 2002 · complexity basic · author Mario Martinez · version 6.0


This tip is actually for Vim 6.1. To turn on syntax coloring in Mac OS X enter the following commands, or place them in your vimrc:

:set term=builtin_beos-ansi
:syntax on

Comments

Note that this is only an issue for Vim in a Terminal window, not for the GUI version, and that it will only work if support for beos-ansi is compiled in. For pre-compiled versions for Mac OS X, see http://vim.sourceforge.net/download.php#mac

There are some further OS X FAQ's on my page, http://homepage.mac.com/fisherbb/index.html


'syntax enable' also works fine.


For Mountain Lion in vim use:

:set term=builtin_ansi
:syntax on

Or in your ~/.vimrc:

set term=builtin_ansi
20 syntax on

Around Wikia's network

Random Wiki