aboutsummaryrefslogtreecommitdiff
path: root/.vim/vimrc
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-06-24 15:45:37 +0200
committersrdusr <trevorgray@srdusr.com>2023-06-24 15:45:37 +0200
commit0ef92c445b389a21471f2666a2cf2dd8c600dadf (patch)
treed6c32e7cf8ae7418893268710783ee3eab580473 /.vim/vimrc
parentc5faf0153e3249091d8a5500d8e13dde3f9486a7 (diff)
downloaddotfiles-0ef92c445b389a21471f2666a2cf2dd8c600dadf.tar.gz
dotfiles-0ef92c445b389a21471f2666a2cf2dd8c600dadf.zip
Made colorscheme fallback
Diffstat (limited to '.vim/vimrc')
-rw-r--r--.vim/vimrc11
1 files 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
"-------------------------------------------------------------------------------