From 71cbbceeec3baf68a9fdc1150baa7e293175f53f Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 4 Nov 2019 17:24:09 -0500 Subject: [PATCH] vim: fix colorscheme decision The $TERM variable is not set in gvim. This commit fixes the if statement appropriately --- vim/vimrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 17df0d1..0d43935 100644 --- 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 -- libgit2 0.28.4