From 7f354f5a9638327c0182e0ddb675ba173fe43690 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Sat, 2 Dec 2017 13:43:13 -0500 Subject: [PATCH] Load colorscheme with vundle --- vimrc | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 9efd410..8401244 100644 --- a/vimrc +++ b/vimrc @@ -34,6 +34,9 @@ call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' +" Colorscheme +Plugin 'rakr/vim-one' + " Plugin nerdtree for tree package explorer Plugin 'scrooloose/nerdtree.git' @@ -81,20 +84,28 @@ syntax on " Encoding set encoding=utf-8 -"colorscheme +" COLORSCHEME +" use iterm profiles to determin background if $ITERM_PROFILE=='light_background' set background=light else set background=dark endif -colorscheme one -set termguicolors +" load colorscheme if plugins installed +if filereadable(expand("~/.vim/bundle/vim-one/colors/one.vim")) + colorscheme one +endif + +" if can use truecolor, do +if (has("termguicolors")) + set termguicolors +endif + let g:airline_theme = 'onedark' " Show whitespace with 'set: list' (disable: set: nolist) set listchars=space:·,tab:>–,trail:~,eol:¬ -set list " Syntastic Default Settings set statusline+=%#warningmsg# -- libgit2 0.28.4