I am trying to achieve the following. If I have a file, e.g. a tex document and I want to have the following with commenting characters (% symbols) highlighted:
% Some text and end of the sentence. % Some more text.
I already know how to highlight commented lines, but that is not exactly what I want.
Also, I can achieve the desired effect if I just search for the % symbol, but I am too lazy to do that every time after I search anything else.
I also would like to have a config so that in other languages I would have the same (e.g. -- symbols for lua, or # symbol for bash)
Does anybody know how to do that elegantly in my .vimrc file?