From 56b80b236ff11c1ce70c65e575768b2aafd51f41 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sun, 9 Jun 2024 15:44:30 +0200 Subject: check if we have termguicolors before activating --- vim/.vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/.vimrc b/vim/.vimrc index 02adeec..bb550f6 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -227,7 +227,7 @@ if &term =~ 'tmux' || &term =~ 'screen' endif " Check if 24bit colors are supported, and activate them -if $COLORTERM == 'truecolor' +if $COLORTERM == 'truecolor' && has('termguicolors') " t_8f is termcode for set foreground color (R, G, B) let &t_8f = "\[38;2;%lu;%lu;%lum" " t_8b is termcode for set background color (R, G, B) -- cgit v1.2.3