apply 24bit color workaround only if needed

This commit is contained in:
Petr Nyc
2023-02-27 15:16:08 +01:00
parent ea56e298d7
commit f6a316b251

2
.vimrc
View File

@@ -89,8 +89,10 @@ let g:syntastic_check_on_wq = 0
" 24bits color fix for tmux " 24bits color fix for tmux
" inspiration from https://github.com/vim/vim/issues/3608 " inspiration from https://github.com/vim/vim/issues/3608
if !has('gui_running') && &term =~ '^\%(screen\|tmux\)'
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
" solarized config " solarized config
set termguicolors set termguicolors