I wanted to highlight all occurence of TODO and NOTE in my code. Looking on the internet, I inserted the following code in my .vimrc
:match GruvboxGreenBold /NOTE/ :2match ErrorMsg /TODO/
This seemed to work fine at first. When I open a file with gvim, the syntax highlights correctly.
However, as soon as I split my screen and the file appears twice, the second one get the correct highlighting but the first one loses it. It repeats whenever I open a new buffer.
Does anyone know how to correct this behavior ?