aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2024-06-09 15:44:30 +0200
committerDennis Eriksen <d@ennis.no>2024-06-09 15:44:30 +0200
commit56b80b236ff11c1ce70c65e575768b2aafd51f41 (patch)
tree092b8c87a3dfe3dc7bc0b9e412f2a5a1ce789316
parentThe space is added later if you have the correct version (diff)
downloadidgatt-56b80b236ff11c1ce70c65e575768b2aafd51f41.tar.gz
check if we have termguicolors before activating
-rw-r--r--vim/.vimrc2
1 files changed, 1 insertions, 1 deletions
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 = "\<Esc>[38;2;%lu;%lu;%lum"
" t_8b is termcode for set background color (R, G, B)