Is there a way to turn off syntax for only the current buffer/split windows? like for example, you can set map <buffer>
or setlocal
. Is there something similar for the syntax
option ?
I use the :diffsplit
command in vim quite a bit, for which I prefer to disable syntax and but this turns off highlighting for all buffers. I am using the following settings :
" turn off syntax when started from terminal
if &diff
syntax off
endif
" turn off syntax when started from inside vim
au OptionSet diff syntax off