4 ms·
> Out of the box, VIM has no easy way to colorize tabs. This is slightly simplified from my .vimrc: highlight ExtraWhitespace ctermbg=darkred match Ex
by tom_mellior 5y ago
> Out of the box, VIM has no easy way to colorize tabs.
This is slightly simplified from my .vimrc:
highlight ExtraWhitespace ctermbg=darkred
match ExtraWhitespace /\t/
It will highlight any tab in dark red.
(My actual .vimrc uses /\t\| \+$/ to also highlight extra spaces at the ends of lines.)
I hate (and am confused by) pretty much everything about vimscript, but this particular snippet is actually surprisingly clear.
- mg 5y agoVery nice! I hoped somebody might know an easy way like this when I mentioned it! HN for the win!