I am using gVim 8.2 from Cygwin. The synax highlighting recognizes code lines starting with "%%" at columns 1 and 2 show the text black characters on orange background. It is not compatible with my color scheme, and my use of cursorline. I wanted to disable this one part of syntax highlighting.
I tried to find the responsible file anyway to see if I could hack it. I found /usr/share/vim/vim82/syntax/matlab.vim
. I searched for the possibly responsible line by searching for %%
and found:
syn match matlabCellComment "^%%.*$"
<...snip...>
hi def link matlabCellComment Todo
I then browsed the :syn-*
help pages and found that it is an entire language. The following seems to turn off the "reverse video" without losing most of the synatx highlighting for Matlab:
" ~/.vim/syntax/matlab.vim
"-------------------------
hi! def link matlabCellComment NONE
However, any lines matching starting with %%
at columns 1 and 2 now have no syntax highlighting.
How can I get lines matching ^%%
to show up the same way that all comments do?
I suspect that undoing the syn match matlabCellComment "^%%.*$"
command might do the trick, but having perused the syn-match
page, it's not clear to me how to do this.
vimrc
. From your answer, however, I can see in retrospect that it is the same thing. I've erased the update. I appreciate the clarification on theafter
folder.