How could I turn off syntax highlighting in vim, but only for Go?
I've seen a few posts about just turning off the red-highlighting for white space but that's not quite what I'm looking for.
Add the following line to your vimrc file:
autocmd FileType go setlocal syntax=OFF
Considering that the vim documentation states
The syntax and highlighting commands for one language are normally stored in a syntax file.
The name convention is: "{name}.vim
". Where{name}
is the name of the language, or an abbreviation
If you can find a go.vim
file (similar to this one) and delete it (or move it), that should disable the syntax highlighting just for Go.