mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 08:08:02 +00:00
Add Toggling Syntax Highlighting as a vim til
This commit is contained in:
19
vim/toggling-syntax-highlighting.md
Normal file
19
vim/toggling-syntax-highlighting.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user