You can change vi-vim options using the set command. To see current options just execute this:
set
:set
To see all available options:
:set all
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