Turning syntax highlighting for vi and vim in Mac OS X is as simple as creating a file called “.vimrc" in your home folder with the following content:
.vimrc
set nocompatiblesyntax on