Fix colours in tmux

This commit is contained in:
Anthony Rose 2021-05-02 21:52:15 +01:00
parent 8bcd8e2c45
commit 7e1e068ff8

7
vimrc
View file

@ -126,7 +126,12 @@ if has("eval")
set t_Co=16 set t_Co=16
endif endif
colorscheme PaperColor colorscheme PaperColor
set termguicolors
if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' )
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
endif endif
"============================================================================= "=============================================================================