I\'ve set the following options in .vimrc
set listchars=tab:▸\\ ,trail:· set list
And expected to see dots in those places where spaces are use
You should check this link. I'm using the match command solution :
match
:highlight ExtraWhitespace ctermbg=red guibg=red :match ExtraWhitespace /\s\+$/
This page also provides list based solutions which I haven't personally tried.