From 22c8bb6067a5b678433f19523ccb41dde7b9aad5 Mon Sep 17 00:00:00 2001 From: Josh Dick Date: Tue, 9 May 2017 19:23:47 -0400 Subject: [PATCH] Move `set background=dark` to the end of the colorscheme to work around a Vim oddity. --- build/templates/onedark.template.vim | 6 ++++-- colors/onedark.vim | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/templates/onedark.template.vim b/build/templates/onedark.template.vim index 2051c6e..0da38ce 100644 --- a/build/templates/onedark.template.vim +++ b/build/templates/onedark.template.vim @@ -44,8 +44,6 @@ " | Initialization | " +----------------+ -set background=dark - highlight clear if exists("syntax_on") @@ -528,3 +526,7 @@ if has("nvim") let g:terminal_color_background = g:terminal_color_0 let g:terminal_color_foreground = g:terminal_color_7 endif + +" Must appear at the end of the file to work around this oddity: +" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ +set background=dark diff --git a/colors/onedark.vim b/colors/onedark.vim index c562c96..168ffa1 100644 --- a/colors/onedark.vim +++ b/colors/onedark.vim @@ -44,8 +44,6 @@ " | Initialization | " +----------------+ -set background=dark - highlight clear if exists("syntax_on") @@ -528,3 +526,7 @@ if has("nvim") let g:terminal_color_background = g:terminal_color_0 let g:terminal_color_foreground = g:terminal_color_7 endif + +" Must appear at the end of the file to work around this oddity: +" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ +set background=dark