From d2ddb5d7e653eec00ea8260699a0277e40b7eb7e Mon Sep 17 00:00:00 2001 From: Akshay Hegde Date: Tue, 22 Dec 2020 22:06:05 -0800 Subject: [PATCH] Avoid setting background' unnecessarily --- colors/spacegray.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/colors/spacegray.vim b/colors/spacegray.vim index 2205e32..4d023f6 100644 --- a/colors/spacegray.vim +++ b/colors/spacegray.vim @@ -8,10 +8,15 @@ " Setup {{{1 hi clear +if has("gui_running") && &background !=# 'dark' + set background=dark +endif + if exists('syntax_on') syntax reset endif +" Options {{{1 if !exists('g:spacegray_underline_search') let g:spacegray_underline_search = 0 endif