16
2
I am trying to set up rules to highlight both trailing whitespace and lines which are over a certain length by adding this to my .vimrc:
highlight ExtraWhitespace ctermbg=lightgray guibg=lightgray
match ExtraWhitespace /\s\+$/
highlight OverLength ctermbg=lightgray guibg=lightgray
match OverLength /\%>80v.\+/
However, it only seems to pick up whichever is last. I can't find a way to get them to both work simultaneously.