From f6a316b251eded632b44c1a52af260d90668bf56 Mon Sep 17 00:00:00 2001 From: Petr Nyc Date: Mon, 27 Feb 2023 15:16:08 +0100 Subject: [PATCH] apply 24bit color workaround only if needed --- .vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index eb27c0f..8415194 100644 --- a/.vimrc +++ b/.vimrc @@ -89,8 +89,10 @@ let g:syntastic_check_on_wq = 0 " 24bits color fix for tmux " inspiration from https://github.com/vim/vim/issues/3608 -let &t_8f = "\[38;2;%lu;%lu;%lum" -let &t_8b = "\[48;2;%lu;%lu;%lum" +if !has('gui_running') && &term =~ '^\%(screen\|tmux\)' + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" +endif " solarized config set termguicolors