From 2bee27dc80d3dcd556466a68055702e267371214 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 21 Jun 2018 15:31:25 +0300 Subject: [PATCH] fix term detection --- vimplugins | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vimplugins b/vimplugins index 6cc44a9..04e8df7 100644 --- a/vimplugins +++ b/vimplugins @@ -10,6 +10,7 @@ Plug 'junegunn/vim-plug' " general plugins Plug 'junegunn/vim-easy-align' Plug 'mhinz/vim-signify' +Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rsi' Plug 'vdrandom/vim-tru-typewriter' @@ -42,14 +43,14 @@ xmap a (EasyAlign) nmap a (EasyAlign) " we have themes installed, so we use them! -if &term =~ '^[tmux|st]' && v:version >= 800 - let &t_8f = "\[38;2;%lu;%lu;%lum" - let &t_8b = "\[48;2;%lu;%lu;%lum" +if &term =~ '^\(tmux\|st\)' && v:version >= 800 + let &t_8f = "\033[38;2;%lu;%lu;%lum" + let &t_8b = "\033[48;2;%lu;%lu;%lum" set termguicolors bg=dark colorscheme gruvbox8 else - set bg=light let g:solarized_use16 = 1 let g:solarized_term_italics = 0 + set bg=light colorscheme solarized8 endif