Browse files

jvortmann: give the users the ability to use their own colors for the…

… JasmineRedGreen.
  • Loading branch information...
1 parent 9984961 commit 7dcd8294469a7e5186657d6b98baee3d2d812d73 @jvortmann jvortmann committed Mar 14, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 autoload/jasmine.vim
View
7 autoload/jasmine.vim
@@ -98,17 +98,20 @@ function jasmine#redgreen()
endfor
endfunction
+if !exists("g:jasmine_use_own_colors")
+ hi RedBar ctermfg=white ctermbg=red guifg=white guibg=red
+ hi GreenBar ctermfg=black ctermbg=green guifg=black guibg=green
+endif
+
function jasmine#redbar(message)
let message = " ".a:message
- hi RedBar ctermfg=white ctermbg=red guifg=white guibg=red
echohl RedBar
echon message repeat(" ", &columns - strlen(message) - 1)
echohl
endfunction
function jasmine#greenbar(message)
let message = " ".a:message
- hi GreenBar ctermfg=black ctermbg=green guifg=black guibg=green
echohl GreenBar
echon message repeat(" ", &columns - strlen(message) - 1)
echohl

0 comments on commit 7dcd829

Please sign in to comment.