commit 71cbbceeec3baf68a9fdc1150baa7e293175f53f (patch)
parent 71f95a5d254b544d688b6e0ef11f01550dde97b4
Author: Alex Karle <alex@karle.co>
Date: Mon, 4 Nov 2019 17:24:09 -0500
vim: fix colorscheme decision
The $TERM variable is not set in gvim. This commit fixes the if
statement appropriately
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -95,8 +95,7 @@ set listchars=space:·,tab:>–,trail:~,eol:¬
" COLORSCHEME
" Only gruv if you can handle it
" NOTE: for initial check, check $TERM, not &term, as nvim has &term=nvim
-if $TERM =~# '256color' &&
- \ (has("termguicolors") || has('gui_running')) &&
+if (($TERM =~# '256color' && has("termguicolors")) || has('gui_running')) &&
\ filereadable(s:vimdir . "/pack/mine/start/gruvbox/colors/gruvbox.vim")
set termguicolors