I'm a tabs kind of guy, so I highlight leading and trailing white spaces with the following commands in my
highlight whiteSpace_trailing ctermbg=red guibg=red highlight whiteSpace_leading ctermbg=red guibg=red match whiteSpace_trailing /\s\+$/ 2match whiteSpace_leading /^ \+/
This works fine when I have only one window open. However, when opening a second window with visual splits for example, these specs are not taken into account. Any idea why and how to fix it?