diff --git a/home/.vimrc b/home/.vimrc index f81c2b8..68c3bd5 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -52,7 +52,7 @@ set modeline " Highlight trailing spaces and spaces before tabs highlight ExtraWhitespace ctermbg=red guibg=red -match ExtraWhitespace /\s\+$\| \+\ze\t/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$\| \+\ze\t/ " tab settings set ai