> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/vim/toggling-syntax-highlighting.md).

# 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.

```vim
:syntax off
```

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

```vim
:syntax on
```

See `:h syntax-on` for more details.

h/t Steve Klabnik
