summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-10-13 16:31:48 +0200
committerUrbain Vaes <urbain@vaes.uk>2017-10-14 16:29:31 +0200
commitbbc8c1a4423f42ccda0594def689ba415b6de06a (patch)
tree7ceb8672cba37fc61361a92af9ef75b66067b1bd
parent95fb4377d328e428f5e07ff154e06780e4166ece (diff)
[vim] Make part of config depend on hostname
-rw-r--r--vim/.vimrc23
1 files changed, 18 insertions, 5 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 9c83543..fe64d99 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -346,11 +346,24 @@ endif
set t_Co=256
"" Colorscheme
-silent! colo $COLORSCHEME
-if $BACKGROUND=="dark"
- set background=dark
-elseif $BACKGROUND=="light"
- set background=light
+let hostname = substitute(system('hostname'), '\n', '', '')
+
+if hostname == "navajo"
+ silent! colo $COLORSCHEME
+ if $BACKGROUND=="dark"
+ set background=dark
+ elseif $BACKGROUND=="light"
+ set background=light
+ endif
+
+ if $COLORSCHEME=="solarized"
+ let g:airline_theme='base16'
+ else
+ let g:airline_theme=$COLORSCHEME
+ endif
+else
+ color nord
+ let g:airline_theme="nord"
endif
"" Autocommands