Skip to content
Browse files

Updates vim template

Fixes light theme issues with ColorColumn and GitGutter
  • Loading branch information...
1 parent 20087db commit 880a8b376347956cd23bd93751a2244a7ba48abb @chriskempson committed Mar 23, 2013
Showing with 12 additions and 4 deletions.
  1. +12 −4 templates/vim/vim.erb
View
16 templates/vim/vim.erb
@@ -109,7 +109,7 @@ if &background == "dark"
call <SID>hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none")
call <SID>hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none")
call <SID>hi("VertSplit", s:gui02, s:gui02, s:cterm02, s:cterm02, "none")
- call <SID>hi("ColorColumn", "", s:gui01, "", s:cterm01, "none")
+ call <SID>hi("ColorColumn", "", s:gui01, "", s:cterm01, "none")
call <SID>hi("CursorColumn", "", s:gui01, "", s:cterm01, "none")
call <SID>hi("CursorLine", "", s:gui01, "", s:cterm01, "none")
call <SID>hi("CursorLineNr", s:gui03, s:gui01, s:cterm03, s:cterm01, "")
@@ -128,6 +128,7 @@ else
call <SID>hi("StatusLine", s:gui04, s:gui06, s:cterm04, s:cterm06, "none")
call <SID>hi("StatusLineNC", s:gui04, s:gui06, s:cterm04, s:cterm06, "none")
call <SID>hi("VertSplit", s:gui05, s:gui05, s:cterm05, s:cterm05, "none")
+ call <SID>hi("ColorColumn", "", s:gui06, "", s:cterm06, "none")
call <SID>hi("CursorColumn", "", s:gui06, "", s:cterm06, "none")
call <SID>hi("CursorLine", "", s:gui06, "", s:cterm06, "none")
call <SID>hi("CursorLineNr", s:gui04, s:gui06, s:cterm04, s:cterm06, "")
@@ -231,9 +232,16 @@ call <SID>hi("gitCommitOverflow", s:gui08, "", s:cterm08, "", "")
call <SID>hi("gitCommitSummary", s:gui0B, "", s:cterm0B, "", "")
" GitGutter Highlighting
-call <SID>hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "")
-call <SID>hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "")
-call <SID>hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "")
+if &background == "dark"
+ call <SID>hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "")
+ call <SID>hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "")
+ call <SID>hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "")
+else
+ call <SID>hi("GitGutterAdd", s:gui0B, s:gui06, s:cterm0B, s:cterm06, "")
+ call <SID>hi("GitGutterChange", s:gui0D, s:gui06, s:cterm0D, s:cterm06, "")
+ call <SID>hi("GitGutterDelete", s:gui08, s:gui06, s:cterm08, s:cterm06, "")
+endif
+
" GitGutter Highlighting
call <SID>hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "")

0 comments on commit 880a8b3

Please sign in to comment.
Something went wrong with that request. Please try again.