From 7e1e068ff83611d07494b3546634550db713068c Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 2 May 2021 21:52:15 +0100 Subject: [PATCH] Fix colours in tmux --- vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 "=============================================================================