From 57aad42f3a17b055a8435754c6327fef6817ac77 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Fri, 16 Feb 2018 12:21:47 -0500 Subject: [PATCH] Adding true color support for regular (non-neovim) vim in tmux --- vim/theme.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/theme.vim b/vim/theme.vim index 618e65e..907402c 100644 --- a/vim/theme.vim +++ b/vim/theme.vim @@ -20,4 +20,12 @@ endif " if can use truecolor, do if (has("termguicolors")) set termguicolors + + " Needed for termgui in tmux--&term begins w screen-... + if &term =~# '^screen' + " Set the terminal foreground+background colors + " See :h xterm-true-color + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + endif endif -- libgit2 0.28.4