summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2014-10-15 17:53:15 +0100
committerUrbain Vaes <urbain@vaes.uk>2014-10-15 17:53:15 +0100
commit746860ded21c59dd49a755fd38f8f56ee07b0846 (patch)
treeb1b6c3306b82aa144622217511295f1f40aaef2b /.vimrc
parent8c685e4ad30af7576dd454ca8741a42d39898648 (diff)
Adding tmux + zsh aliases
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