From ab5eefef97c2a001ce8d6b285acdeb38b72a2669 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 26 Apr 2019 15:37:14 +0200 Subject: [PATCH] try catch colorscheme --- init.vim | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/init.vim b/init.vim index 5093a1a..29e1953 100644 --- a/init.vim +++ b/init.vim @@ -1,13 +1,6 @@ " Pas de compatibilité a VI ! set nocompatible -" If plug is not installed, install it -if empty(glob('~/.config/nvim/autoload/plug.vim')) - silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall --sync | source $MYVIMRC -endif - " PLUGNIS ###########################################################{{{ call plug#begin() if has('nvim') @@ -88,7 +81,10 @@ set t_Co=256 " COLOR #############################################################{{{ set background=dark syntax enable -colorscheme peach +try + colorscheme peach +catch +endtry highlight BadWhitespace ctermbg=red guibg=red match BadWhitespace / \| \+\t/ " }}}