Merge pull request #315 from lfilho/custom-themes
Custom themes / colorschemes
This commit is contained in:
commit
3c9ab42c4d
@ -62,7 +62,3 @@ hi! link htmlLink Include
|
|||||||
hi! CursorLine cterm=NONE gui=NONE
|
hi! CursorLine cterm=NONE gui=NONE
|
||||||
hi! Visual ctermbg=233
|
hi! Visual ctermbg=233
|
||||||
hi! Type gui=bold
|
hi! Type gui=bold
|
||||||
|
|
||||||
|
|
||||||
" Enforce the colors set here
|
|
||||||
au VimEnter * so ~/.vim/plugin/settings/solarized.vim
|
|
@ -1,7 +1,24 @@
|
|||||||
" Make it beautiful - colors and fonts
|
" Make it beautiful - colors and fonts
|
||||||
|
|
||||||
" http://ethanschoonover.com/solarized/vim-colors-solarized
|
" 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
|
set background=dark
|
||||||
|
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user