aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/max-fix-colorschemes.vim4
-rw-r--r--plugin/statusline.vim2
2 files changed, 5 insertions, 1 deletions
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()
26 highlight! link FoldColumn VertSplit 26 highlight! link FoldColumn VertSplit
27 " highlight! link Folded LineNr 27 " highlight! link Folded LineNr
28 highlight! link EndOfBuffer NonText 28 highlight! link EndOfBuffer NonText
29 hi Comment gui=italic
30 hi Keyword gui=bold
31
32 autocmd BufReadPost * syntax match Convention /\s*$/
29endfunction 33endfunction
30autocmd ColorScheme * call ExtendColorTheme() 34autocmd ColorScheme * call ExtendColorTheme()
31 35
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
24 " this function reverts foreground color and background color of a given 24 " this function reverts foreground color and background color of a given
25 " highlight group and returns the name of a newly created _invert group 25 " highlight group and returns the name of a newly created _invert group
26 function! CreateInvertGroup(highlight_group) 26 function! CreateInvertGroup(highlight_group)
27 if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'cterm')==1) 27 if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'gui')==1)
28 let w:color=synIDattr(hlID(a:highlight_group), 'fg#') 28 let w:color=synIDattr(hlID(a:highlight_group), 'fg#')
29 else 29 else
30 let w:color=synIDattr(hlID(a:highlight_group), 'bg#') 30 let w:color=synIDattr(hlID(a:highlight_group), 'bg#')
..