Note that this isn’t the fault of OS X, it’s because I’ve got ansi color turned on and my settings configured wrong. So, how to disable syntax highlighting in Vim?

Look, somebody puked a rainbow into my terminal window…

Disable for Current Session

If you type :syntax off into the current editor, it’ll turn the syntax highlighting off immediately:

You could use the opposite command, :syntax on, to turn it back on and make your eyes bleed.

Turn Off Permanently (for current user)

In order to turn off highlighting permanently for your user account, you can edit the .vimrc file in your user directory and add the setting to turn off syntax highlighting. Run this command:

Add the following line to disable syntax highlighting for your user account:

If you wanted to enable highlighting, you could use “syntax on” instead.