vim
vim copied to clipboard
Trailing whitespace visibility
Is there a way to make trailing whitespace a bit more visible? It's quite difficult to spot it at a glance:

ok found a solution to this:
augroup nord_theme_overrides
autocmd!
autocmd ColorScheme nord highlight ExtraWhitespace guifg=#88C0D0
autocmd ColorScheme nord match ExtraWhiteSpace /\S\(\s\+\)$/
augroup END
happy to hear if there is a better way though
Hi @dbatten5 :wave:
Using autocmd groups is the recommended way to customize Nord Vim. Defining a custom highlighting group like you did is one way to match only specific tokens. To change the color for all non-printable characters (listchars), you can customize the SpecialKey group:
augroup nord-theme-overrides
autocmd!
" Use 'nord8' as foreground color for non-printable characters.
autocmd ColorScheme nord highlight SpecialKey ctermfg=6 guifg=#88C0D0
augroup END