Added Solarized light/dark switching
Switched between light and dark Solarized themes based on the time of day.
This commit is contained in:
parent
bad8a42835
commit
19eaf1b39a
|
@ -6,7 +6,6 @@ vim_configurable.customize {
|
||||||
vimrcConfig.customRC = ''
|
vimrcConfig.customRC = ''
|
||||||
" Preferred global default settings:
|
" Preferred global default settings:
|
||||||
set number " Enable line numbers by default
|
set number " Enable line numbers by default
|
||||||
set background=dark " Set the default background to dark or light
|
|
||||||
set smartindent " Automatically insert extra level of indentation
|
set smartindent " Automatically insert extra level of indentation
|
||||||
set tabstop=4 " Default tabstop
|
set tabstop=4 " Default tabstop
|
||||||
set shiftwidth=4 " Default indent spacing
|
set shiftwidth=4 " Default indent spacing
|
||||||
|
@ -38,6 +37,14 @@ vim_configurable.customize {
|
||||||
autocmd FilterWritePre * :call TrimWhiteSpace()
|
autocmd FilterWritePre * :call TrimWhiteSpace()
|
||||||
autocmd BufWritePre * :call TrimWhiteSpace()
|
autocmd BufWritePre * :call TrimWhiteSpace()
|
||||||
|
|
||||||
|
" Solarized light during the day, solarized dark during the night
|
||||||
|
let hour = strftime("%H")
|
||||||
|
if 7 <= hour && hour < 17
|
||||||
|
set background=light
|
||||||
|
else
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
|
||||||
" Transparent editing of gpg encrypted files.
|
" Transparent editing of gpg encrypted files.
|
||||||
" By Wouter Hanegraaff <wouter@blub.net>
|
" By Wouter Hanegraaff <wouter@blub.net>
|
||||||
augroup encrypted
|
augroup encrypted
|
||||||
|
|
Loading…
Reference in a new issue