From 0ef92c445b389a21471f2666a2cf2dd8c600dadf Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 24 Jun 2023 15:45:37 +0200 Subject: Made colorscheme fallback --- .vim/vimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 4142fe2..a5dec2e 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -366,9 +366,16 @@ command! -bang FM call fzf#run(fzf#wrap({'source': 'cat ~/.fzf-marks | sed "s/.* "colorscheme badwolf "let g:badwolf_darkgutter = 0 " Make the gutters darker than the background. Default 0. "let g:badwolf_tabline = 1 " 1 is default, 0 is lighter and 2 or 3 is darker a tabline -colorscheme onedark + +" Try to use a colorscheme plugin +" but fallback to a default one +try + colorscheme gruvbox +catch /^Vim\%((\a\+)\)\=:E185/ + " no plugins available + colorscheme elflord +endtry highlight Normal guibg=NONE -"highlight Normal guibg=none "set background=dark "------------------------------------------------------------------------------- -- cgit v1.2.3