Fix vimdiff colors being mostly grey in some terminals.

Fixes https://github.com/lifepillar/vim-solarized8/issues/6.
This commit is contained in:
Lifepillar
2016-12-11 20:05:47 +01:00
parent c800f37a02
commit c801e4e553
9 changed files with 99 additions and 36 deletions

View File

@@ -418,10 +418,17 @@ for s:solarized_background in ["dark", "light"]
call s:put(" hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_none)
call s:put(" hi! DiffText" .s:fmt_undr .s:fg_blue .s:bg_none .s:sp_blue)
call s:put("else")
call s:put(" hi! DiffAdd" .s:fmt_bold .s:fg_green .s:bg_base02 .s:sp_green)
call s:put(" hi! DiffChange" .s:fmt_bold .s:fg_yellow .s:bg_base02 .s:sp_yellow)
call s:put(" hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_base02)
call s:put(" hi! DiffText" .s:fmt_bold .s:fg_blue .s:bg_base02 .s:sp_blue)
call s:put(' if has("gui_running")')
call s:put(" hi! DiffAdd" .s:fmt_bold .s:fg_green .s:bg_base02 .s:sp_green)
call s:put(" hi! DiffChange" .s:fmt_bold .s:fg_yellow .s:bg_base02 .s:sp_yellow)
call s:put(" hi! DiffDelete" .s:fmt_bold .s:fg_red .s:bg_base02)
call s:put(" hi! DiffText" .s:fmt_bold .s:fg_blue .s:bg_base02 .s:sp_blue)
call s:put(" else")
call s:put(" hi! DiffAdd" .s:fmt_none .s:fg_green .s:bg_base02 .s:sp_green)
call s:put(" hi! DiffChange" .s:fmt_none .s:fg_yellow .s:bg_base02 .s:sp_yellow)
call s:put(" hi! DiffDelete" .s:fmt_none .s:fg_red .s:bg_base02)
call s:put(" hi! DiffText" .s:fmt_none .s:fg_blue .s:bg_base02 .s:sp_blue)
call s:put(" endif")
call s:put("endif")
" Changed by Lifepillar: set s:bg_none for SignColumn:
call s:put("hi! SignColumn" .s:fmt_none .s:fg_base0 .s:bg_none)