From 17aa5c777e1c6b292faae78c0b0efb705ed6c2d6 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 22 Dec 2017 22:23:19 -0600 Subject: [PATCH] .vimrc: Use g:solarized_termcolors=256 if supported --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index d0c5145..9ed9ed1 100644 --- a/.vimrc +++ b/.vimrc @@ -76,6 +76,9 @@ if &t_Co > 2 || has("gui_running") syntax enable " syntax highligting let g:solarized_termtrans=1 " always use terminal's default bg color + if &t_Co == 256 + let g:solarized_termcolors=256 " use 256 colors for solarized + endif colorscheme solarized let g:airline_theme='solarized16' " vim-airline theme let g:solarized16_termcolors=16 " always use 16 colors for 'solarized16' vim-airline theme -- 2.45.2