From bbc8c1a4423f42ccda0594def689ba415b6de06a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 13 Oct 2017 16:31:48 +0200 Subject: [vim] Make part of config depend on hostname --- vim/.vimrc | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'vim') 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 -- cgit v1.2.3