Merge pull request #315 from lfilho/custom-themes

Custom themes / colorschemes
This commit is contained in:
Yan Pritzker 2013-05-09 13:58:20 -07:00
commit 3c9ab42c4d
3 changed files with 18 additions and 5 deletions

View File

@ -62,7 +62,3 @@ hi! link htmlLink Include
hi! CursorLine cterm=NONE gui=NONE
hi! Visual ctermbg=233
hi! Type gui=bold
" Enforce the colors set here
au VimEnter * so ~/.vim/plugin/settings/solarized.vim

View File

@ -1,7 +1,24 @@
" Make it beautiful - colors and fonts
" http://ethanschoonover.com/solarized/vim-colors-solarized
colorscheme solarized
let s:myTheme='solarized'
exec 'colorscheme ' . s:myTheme
" If there's a custom powerline theme too, load it. Otherwise load the
" solarized one just so it won't look very bad.
let s:powerlineCustom="~/.vim/colors-settings/" . s:myTheme . "-powerline.vim"
if filereadable(expand(s:powerlineCustom))
exec "au VimEnter * so " . s:powerlineCustom
else
exec "au VimEnter * so ~/.vim/colors-settings/solarized-powerline.vim"
endif
let s:colorSchemeCustom="~/.vim/colors-settings/" . s:myTheme . ".vim"
if filereadable(expand(s:colorSchemeCustom))
exec "au VimEnter * so " . s:colorSchemeCustom
endif
set background=dark
if has("gui_running")