commit ca46044fdc4ba2bc9bfad60d8ae5bc41f1baafd0 parent 1bce1f60ad095141a07cf99fcf5e50acbca9ee35 Author: Anders Damsgaard <andersd@riseup.net> Date: Tue, 28 Nov 2017 10:30:20 -0500 wrap hi commands in function, called with autocmd when colorscheme is changed Diffstat:
M | links/.vim/appearance.vim | | | 32 | ++++++++++++++++++++------------ |
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/links/.vim/appearance.vim b/links/.vim/appearance.vim @@ -3,19 +3,27 @@ "set t_Co=256 set colorcolumn=+1 -highlight ColorColumn ctermbg=237 -colorscheme tender +function! ColorSchemeTweaks() abort + + highlight ColorColumn ctermbg=237 -highlight Normal cterm=NONE ctermfg=NONE ctermbg=NONE -highlight Search cterm=NONE ctermfg=black ctermbg=2 -highlight MatchParen cterm=NONE ctermfg=255 ctermbg=199 -highlight SpecialKey ctermfg=250 ctermbg=NONE cterm=NONE -highlight NonText ctermfg=250 ctermbg=NONE + highlight Normal cterm=NONE ctermfg=NONE ctermbg=NONE + highlight Search cterm=NONE ctermfg=black ctermbg=2 + highlight MatchParen cterm=NONE ctermfg=255 ctermbg=199 + highlight SpecialKey ctermfg=250 ctermbg=NONE cterm=NONE + highlight NonText ctermfg=250 ctermbg=NONE +" + "" Invisible character colors + highlight NonText ctermfg=10 guifg=DarkGray + highlight SpecialKey ctermfg=10 guifg=DarkGray + " + "" Split divider appearance + hi! VertSplit ctermfg=238 ctermbg=NONE term=NONE +endfunction -" Invisible character colors -highlight NonText ctermfg=10 guifg=DarkGray -highlight SpecialKey ctermfg=10 guifg=DarkGray +augroup ColorSchemeCmds + autocmd ColorScheme * call ColorSchemeTweaks() +augroup end -" Split divider appearance -hi! VertSplit ctermfg=238 ctermbg=NONE term=NONE +colorscheme tender