Vi: toggle syntax highlighting

By Eric Downing. Filed in Editors, vi  |  
TOP del.icio.us digg

If you have ever used vi to edit source code, there are occasions where you get on a system that has a very difficult to read color mode. At these times you want the colors to just go away. You can use the following in command mode in vi:

This will toggle off the syntax highlighting mode.

:syntax off

This will turn it back on.

:syntax on

Tags: , ,

Leave a Reply