vim: Highlight trailing spaces in colorscheme red

This commit is contained in:
2025-11-25 17:50:05 +01:00
parent 9e18be760c
commit d0abb14567

View File

@@ -54,10 +54,10 @@ endif
if match(&listchars, 'trail: \@!') > -1 && match(&listchars, '\vtab:( +)@!') > -1 if match(&listchars, 'trail: \@!') > -1 && match(&listchars, '\vtab:( +)@!') > -1
" Use foreground for coloring if tabs and trailing spaces are displayed " Use foreground for coloring if tabs and trailing spaces are displayed
" as non-space characters " as non-space characters
highlight TrailingWhitespace ctermfg=red guifg=red highlight TrailingWhitespace ctermfg=204 guifg=#e06c75
else else
" Background otherwise " Background otherwise
highlight TrailingWhitespace ctermbg=red guibg=red highlight TrailingWhitespace ctermbg=204 guibg=#e06c75
endif endif
augroup HighlightTrailingWhitespace augroup HighlightTrailingWhitespace
au! au!