From 50ba1a59ecdf332073066735f7bb9873488e53cc Mon Sep 17 00:00:00 2001 From: Evgeni Kolev Date: Mon, 18 Jul 2016 16:27:28 +0300 Subject: [PATCH] Restore &background's value in case changing hl-Normal changed it. --- colors/paramount.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/colors/paramount.vim b/colors/paramount.vim index 5441c1a..06d1f4e 100644 --- a/colors/paramount.vim +++ b/colors/paramount.vim @@ -46,6 +46,8 @@ let s:light_purple = { "gui": "#a790d5", "cterm": "140" } let s:yellow = { "gui": "#F3E430", "cterm": "11" } let s:dark_yellow = { "gui": "#A89C14", "cterm": "3" } +let s:background = &background + if &background == "dark" let s:bg = s:black let s:bg_subtle = s:lighter_black @@ -83,6 +85,12 @@ function! s:h(group, style) endfunction call s:h("Normal", {"bg": s:bg, "fg": s:norm}) + +" restore &background's value in case changing Normal changed &background (:help :hi-normal-cterm) +if &background != s:background + execute "set background=" . s:background +endif + call s:h("Cursor", {"bg": s:purple, "fg": s:norm }) call s:h("Comment", {"fg": s:bg_subtle, "gui": "italic"})