I wish to turn off syntax highlightings, only for terminal session having a black-and-white (BW, B/W) terminal.
And only for that particular plugin whose syntax vimscript is CPU-intensive which I am a plugin developer.
Some plugins have huge CPU overhead, notably with syntax highlighter plugins (ones in the $HOME/.vim/syntax
).
I've got a black-and-white terminal and wish to turn that off syntax highlighter, preferably using some kind of auto-detection as derived from tput colors
or even $TERM
.
Is it possible not to have my .vimrc
set the value of t_Co
.
What is this ideal vimscript snippet?