Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

enhanced vividchalk with some non eyesore diff colors

  • Loading branch information...
commit 1959a28c382a7bb12c7ed46688df042dc27d11fb 1 parent 4fd9791
David Wilhelm authored

Showing 1 changed file with 24 additions and 0 deletions. Show diff stats Hide diff stats

  1. +24 0 colors/vividchalk.vim
24 colors/vividchalk.vim
@@ -171,3 +171,27 @@ call s:hifg("Special" ,"#33AA00","DarkGreen",24) " 7
171 171 call s:hifg("Regexp" ,"#44B4CC","DarkCyan",21) " 74
172 172 call s:hifg("rubyMethod" ,"#DDE93D","Yellow",77) " 191
173 173 "highlight railsMethod guifg=#EE1122 ctermfg=1
  174 +
  175 +" Utilility Function ---------------------------------------{{{
  176 +function! s:h(group, style)
  177 + execute "highlight" a:group
  178 + \ "guifg=" (has_key(a:style, "fg") ? a:style.fg.gui : "NONE")
  179 + \ "guibg=" (has_key(a:style, "bg") ? a:style.bg.gui : "NONE")
  180 + \ "guisp=" (has_key(a:style, "sp") ? a:style.sp.gui : "NONE")
  181 + \ "gui=" (has_key(a:style, "gui") ? a:style.gui : "NONE")
  182 + \ "ctermfg=" (has_key(a:style, "fg") ? a:style.fg.cterm : "NONE")
  183 + \ "ctermbg=" (has_key(a:style, "bg") ? a:style.bg.cterm : "NONE")
  184 + \ "cterm=" (has_key(a:style, "cterm") ? a:style.cterm : "NONE")
  185 +endfunction
  186 +
  187 +"}}}
  188 +
  189 +let s:faintGreen= { "gui": "#005F00", "cterm": "34" }
  190 +let s:faintRed= { "gui": "#5F0000", "cterm": "52" }
  191 +let s:normRed= { "gui": "#af0000", "cterm": "124" }
  192 +let s:darkBlue= { "gui": "#005FD7", "cterm": "26" }
  193 +
  194 +call s:h("DiffAdd", { "fg": s:faintGreen })
  195 +call s:h("DiffChange", { "fg": s:normRed })
  196 +call s:h("DiffDelete", { "fg": s:faintRed })
  197 +call s:h("DiffText", { "fg": s:darkBlue })

0 comments on commit 1959a28

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