Skip to content

Commit

Permalink
vim: Prevent set background=dark from being reset
Browse files Browse the repository at this point in the history
The call to `<SID>X("Normal", s:foreground, s:background, "")` resets
the background option and since VIm fails to detect the dark background
it gets set to `light`.

Moving the `set background=dark` call at the end fixes it.
  • Loading branch information
em- committed Jun 25, 2013
1 parent f84917e commit db7be80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion vim/colors/Tomorrow-Night-Blue.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ let s:blue = "bbdaff"
let s:purple = "ebbbff"
let s:window = "4d5057"

set background=dark
hi clear
syntax reset

Expand Down Expand Up @@ -375,3 +374,5 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
delf <SID>grey_level
delf <SID>grey_number
endif

set background=dark
3 changes: 2 additions & 1 deletion vim/colors/Tomorrow-Night-Bright.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ let s:blue = "7aa6da"
let s:purple = "c397d8"
let s:window = "4d5057"

set background=dark
hi clear
syntax reset

Expand Down Expand Up @@ -375,3 +374,5 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
delf <SID>grey_level
delf <SID>grey_number
endif

set background=dark
3 changes: 2 additions & 1 deletion vim/colors/Tomorrow-Night-Eighties.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ let s:blue = "99cccc"
let s:purple = "cc99cc"
let s:window = "4d5057"

set background=dark
hi clear
syntax reset

Expand Down Expand Up @@ -375,3 +374,5 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
delf <SID>grey_level
delf <SID>grey_number
endif

set background=dark
3 changes: 2 additions & 1 deletion vim/colors/Tomorrow-Night.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ if !has("gui_running")
let s:selection = "585858"
end

set background=dark
hi clear
syntax reset

Expand Down Expand Up @@ -391,3 +390,5 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
delf <SID>grey_level
delf <SID>grey_number
endif

set background=dark

0 comments on commit db7be80

Please sign in to comment.