try catch colorscheme
This commit is contained in:
parent
23036deb6f
commit
ab5eefef97
12
init.vim
12
init.vim
|
@ -1,13 +1,6 @@
|
||||||
" Pas de compatibilité a VI !
|
" Pas de compatibilité a VI !
|
||||||
set nocompatible
|
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 ###########################################################{{{
|
" PLUGNIS ###########################################################{{{
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
@ -88,7 +81,10 @@ set t_Co=256
|
||||||
" COLOR #############################################################{{{
|
" COLOR #############################################################{{{
|
||||||
set background=dark
|
set background=dark
|
||||||
syntax enable
|
syntax enable
|
||||||
colorscheme peach
|
try
|
||||||
|
colorscheme peach
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
highlight BadWhitespace ctermbg=red guibg=red
|
highlight BadWhitespace ctermbg=red guibg=red
|
||||||
match BadWhitespace / \| \+\t/
|
match BadWhitespace / \| \+\t/
|
||||||
" }}}
|
" }}}
|
||||||
|
|
Loading…
Reference in New Issue