Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 368 Bytes

toggling-syntax-highlighting.md

File metadata and controls

19 lines (13 loc) · 368 Bytes

Toggling Syntax Highlighting

Syntax highlighting in Vim is generally a good thing, but sometimes you need to turn it off. This can be achieved with the syntax command.

:syntax off

When you need that syntax highlighting back again, you can turn it right back on like so:

:syntax on

See :h syntax-on for more details.

h/t Steve Klabnik