Skip to content

Commit

Permalink
Fix inconsistent highlight color
Browse files Browse the repository at this point in the history
  • Loading branch information
liuqiang1357 committed Aug 13, 2017
1 parent 733fb64 commit 16e4d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/trailing-whitespace.vim
Expand Up @@ -13,8 +13,8 @@ function! ShouldMatchWhitespace()
endfunction

" Highlight EOL whitespace, http://vim.wikia.com/wiki/Highlight_unwanted_spaces
highlight default ExtraWhitespace ctermbg=darkred guibg=#382424
autocmd ColorScheme * highlight default ExtraWhitespace ctermbg=red guibg=red
highlight default ExtraWhitespace ctermbg=darkred guibg=darkred
autocmd ColorScheme * highlight default ExtraWhitespace ctermbg=darkred guibg=darkred
autocmd BufRead,BufNew * if ShouldMatchWhitespace() | match ExtraWhitespace /\\\@<![\u3000[:space:]]\+$/ | else | match ExtraWhitespace /^^/ | endif

" The above flashes annoyingly while typing, be calmer in insert mode
Expand Down

0 comments on commit 16e4d4d

Please sign in to comment.