Skip to content

Commit

Permalink
fix(vim): colorscheme not available
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillmorozov committed Jul 24, 2024
1 parent 504c5db commit 1f306d8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,17 @@ syntax enable

filetype plugin indent on

colorscheme default
if has("termguicolors")
set termguicolors
colorscheme zaibatsu
try
colorscheme zaibatsu
catch
" NOTE(kirillmorozov): zaibatsu may not be available on older vim
" versions, fall back to habamax instead.
colorscheme habamax
endtry
else
colorscheme default
endif

" Show tabs, multiple consecutive spaces, trailing spaces and breaks
Expand Down

0 comments on commit 1f306d8

Please sign in to comment.