summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc14
1 files changed, 12 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index 8e4e730..38ccba4 100644
--- a/.vimrc
+++ b/.vimrc
@@ -97,7 +97,6 @@ else
set t_Co=256
endif
set guitablabel=%N\ %t\ %M
-set background=dark
set showcmd
" Layout text
@@ -105,8 +104,19 @@ set wrap
set linebreak
set textwidth=0
set conceallevel=2
-set guifont=Monaco\ 11
+set guifont=Monaco\ 12
+
+" Colorscheme
+function! UpdateColorscheme()
+ if strftime("%H") >= 9 && strftime("%H") < 19
+ set background=light
+ else
+ set background=dark
+ endif
+endfunction
try | colorscheme solarized | catch | endtry
+call UpdateColorscheme()
+autocmd! BufNewFile,BufRead,BufWrite * :call UpdateColorscheme()
" Case and spell
set nospell