Fix colours in tmux

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

5
vimrc
View file

@ -126,8 +126,13 @@ if has("eval")
set t_Co=16 set t_Co=16
endif endif
colorscheme PaperColor colorscheme PaperColor
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 set termguicolors
endif endif
endif
"============================================================================= "=============================================================================
" Settings based on feature detection. " Settings based on feature detection.