From 61fbead287fdff7dd4289945bc6012963e63e6c1 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 17 Jan 2018 21:18:23 +0500 Subject: Check if Vim build with support of true colors. --- files/.vimrc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'files/.vimrc') diff --git a/files/.vimrc b/files/.vimrc index 9913554..fe018f6 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -213,13 +213,15 @@ let maplocalleader="\\" if &t_Co < 16 set t_Co=16 endif -let &t_8f = "\[38;2;%lu;%lu;%lum" -let &t_8b = "\[48;2;%lu;%lu;%lum" -let g:solarized_termcolors=256 -let g:solarized_termtrans=1 +if has('termguicolors') + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + let g:solarized_termcolors=256 + let g:solarized_termtrans=1 + set termguicolors +endif set background=light colorscheme solarized8_light -set termguicolors " }}} -- cgit v1.2.3