diff --git a/vimrc b/vimrc index 894c848..064b422 100644 --- a/vimrc +++ b/vimrc @@ -126,7 +126,12 @@ if has("eval") set t_Co=16 endif colorscheme PaperColor - set termguicolors + + if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' ) + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + set termguicolors + endif endif "=============================================================================