aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2018-01-17 21:18:23 +0500
committerAnton Bobov <abobov@gmail.com>2018-01-17 21:18:23 +0500
commit61fbead287fdff7dd4289945bc6012963e63e6c1 (patch)
tree6e363bdb54795940e568388707c26ea05a47d0ac
parent7d467a15263572b40bb227f5ce00cfc7e2b0ba76 (diff)
Check if Vim build with support of true colors.
-rw-r--r--files/.vimrc12
1 files changed, 7 insertions, 5 deletions
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 = "\<Esc>[38;2;%lu;%lu;%lum"
-let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
-let g:solarized_termcolors=256
-let g:solarized_termtrans=1
+if has('termguicolors')
+ let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
+ let &t_8b = "\<Esc>[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
" }}}