From 3abfad483660e8dcdd77965a237c271a90cec8e7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 16 Jul 2020 20:41:11 +0200 Subject: Tiny mostly optical improvements --- plugin/max-fix-colorschemes.vim | 4 ++++ plugin/statusline.vim | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim index c0f091d..edbb0ee 100644 --- a/plugin/max-fix-colorschemes.vim +++ b/plugin/max-fix-colorschemes.vim @@ -26,6 +26,10 @@ function! ExtendColorTheme() highlight! link FoldColumn VertSplit " highlight! link Folded LineNr highlight! link EndOfBuffer NonText + hi Comment gui=italic + hi Keyword gui=bold + + autocmd BufReadPost * syntax match Convention /\s*$/ endfunction autocmd ColorScheme * call ExtendColorTheme() diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 57fbfa4..bad9eb9 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim @@ -24,7 +24,7 @@ augroup MAX_FANCYLINE " this function reverts foreground color and background color of a given " highlight group and returns the name of a newly created _invert group function! CreateInvertGroup(highlight_group) - if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'cterm')==1) + if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'gui')==1) let w:color=synIDattr(hlID(a:highlight_group), 'fg#') else let w:color=synIDattr(hlID(a:highlight_group), 'bg#') -- cgit v1.2.3