Add a new dark green vim theme

This commit is contained in:
2017-10-29 16:35:44 -04:00
parent 5868c5e30f
commit f2edc3f72f
6 changed files with 484 additions and 4 deletions

19
vimrc
View File

@@ -573,9 +573,17 @@ endfunction
call UpdateRainbowConf()
function! ReloadRainbow()
if exists('g:rainbow_loaded')
call UpdateRainbowConf()
call rainbow#clear() | call rainbow#hook()
if g:campo_theme_use_rainbow_parens
if exists('g:rainbow_loaded')
call UpdateRainbowConf()
call rainbow#clear() | call rainbow#hook()
endif
else
let g:rainbow_active = 0
if exists('g:rainbow_loaded')
call UpdateRainbowConf()
call rainbow#clear()
endif
endif
endfunction
@@ -638,7 +646,10 @@ set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" COLORS
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let s:dark_theme = 'campo-dark'
" alternative dark theme: 'campo-dark'
let g:campo_theme_use_rainbow_parens = 1
let s:dark_theme = 'campo-dark-green'
let s:light_theme = 'campo-light'
execute "autocmd ColorScheme " . s:dark_theme . " call ReloadRainbow()"