try catch colorscheme

This commit is contained in:
Thomas Forgione 2019-04-26 15:37:14 +02:00
parent 23036deb6f
commit ab5eefef97
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 4 additions and 8 deletions

View File

@ -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
try
colorscheme peach
catch
endtry
highlight BadWhitespace ctermbg=red guibg=red
match BadWhitespace / \| \+\t/
" }}}