Add test to vimrc for 256 variable

This commit is contained in:
Edward Litherland-Smith 2021-02-22 09:45:12 +00:00
parent 1c81b45af9
commit 5e49218109

2
vimrc
View file

@ -12,7 +12,7 @@ set t_TE=""
set t_ut=""
colorscheme onehalfdark
if exists('+termguicolors')
if exists('+termguicolors') && ($COLORTERM == "24bit" || $COLORTERM == "truecolor")
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors