From 655fe358fa659f13dd60a3d9d594fdd99f0d8d9e Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 7 Dec 2014 18:55:42 +0000 Subject: [PATCH] Clear vim highlight groups before setting, don't use black backgrounds --- colors/twilight.vim | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/colors/twilight.vim b/colors/twilight.vim index ba8cfed..5cb8bef 100644 --- a/colors/twilight.vim +++ b/colors/twilight.vim @@ -41,6 +41,7 @@ if has("gui_running") || &t_Co == 256 "" functions "{{{ function HiGroup(group, fg, bg, attr) + exec "hi clear ".a:group if 1 < len(a:fg) exec "hi ".a:group." ctermfg=".get(a:fg, 0) if 2 == len(a:fg) @@ -82,19 +83,19 @@ if has("gui_running") || &t_Co == 256 call HiGroup("MatchParen", s:none, s:dark_green_blue, "none") "call HiGroup("ModeMsg", s:empty, s:empty, "none") "call HiGroup("MoreMsg", s:empty, s:empty, "none") - call HiGroup("NonText", s:blue, s:black, "none") - call HiGroup("Normal", s:white, s:black, "none") + call HiGroup("NonText", s:blue, s:empty, "none") + call HiGroup("Normal", s:white, s:empty, "none") call HiGroup("Pmenu", s:light_grey, s:grey, "none") call HiGroup("PmenuSel", s:black, s:light_orange, "bold") "call HiGroup("PmenuSbar", s:empty, s:empty, "none") "call HiGroup("PmenuThumb", s:empty, s:empty, "none") "call HiGroup("Question", s:empty, s:empty, "none") - call HiGroup("Search", s:none, s:light_grey, "reverse") + call HiGroup("Search", s:none, s:dark_grey, "none") "call HiGroup("SpecialKey", s:emptnoney, s:empty, "none") - call HiGroup("SpellBad", s:bright_red, s:black, "bold") - call HiGroup("SpellCap", s:blue, s:black, "bold") - call HiGroup("SpellLocal", s:light_orange, s:black, "bold") - call HiGroup("SpellRare", s:beige, s:black, "bold") + call HiGroup("SpellBad", s:bright_red, s:empty, "bold") + call HiGroup("SpellCap", s:blue, s:empty, "bold") + call HiGroup("SpellLocal", s:light_orange, s:empty, "bold") + call HiGroup("SpellRare", s:beige, s:empty, "bold") "call HiGroup("StatusLine", s:empty, s:empty, "none") "call HiGroup("StatusLineNC", s:empty, s:empty, "none") call HiGroup("TabLine", s:light_grey, s:mid_grey, "bold") @@ -149,17 +150,17 @@ if has("gui_running") || &t_Co == 256 "call HiGroup("SpecialComment", s:empty, s:empty, "none") "call HiGroup("Debug", s:empty, s:empty, "none") - call HiGroup("Underlined", s:blue, s:none, "underline") + call HiGroup("Underlined", s:blue, s:empty, "underline") "call HiGroup("Ignore", s:empty, s:empty, "none") call HiGroup("Error", s:white, s:red, "bold") - call HiGroup("Todo", s:orange, s:dark_grey, "bold") + call HiGroup("Todo", s:orange, s:empty, "bold") " }}} "" custom syntax groups {{{ - call HiGroup("Note", s:dark_green, s:none, "bold") + call HiGroup("Note", s:dark_green, s:empty, "bold") call HiGroup("Important", s:bright_yellow, s:empty, "bold") call HiGroup("Research", s:orange, s:empty, "bold")