:5000,10002d forigu la linioj
You can use ”:set list” (which defaults to “nolist”), which shows tabs as ^I and puts a “$” at the end of lines. You can also define highlighting regions with “syn match” to define a single tab. You can then link this to whatever highlighting you like perhaps using the following:
:syn match TAB_CHAR “\t” :hi link TAB_CHAR Error
(Thanks to Tom Chase)