diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-10-13 16:31:48 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-10-14 16:29:31 +0200 |
commit | bbc8c1a4423f42ccda0594def689ba415b6de06a (patch) | |
tree | 7ceb8672cba37fc61361a92af9ef75b66067b1bd /vim/.vimrc | |
parent | 95fb4377d328e428f5e07ff154e06780e4166ece (diff) |
[vim] Make part of config depend on hostname
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 23 |
1 files changed, 18 insertions, 5 deletions
@@ -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 |