commit 57aad42f3a17b055a8435754c6327fef6817ac77 (patch) parent 2f605f0c9949471d386f99bd74ebd252d61cc804 Author: Alexander Karle <akarle@umass.edu> Date: Fri, 16 Feb 2018 12:21:47 -0500 Adding true color support for regular (non-neovim) vim in tmux Diffstat:
M | vim/theme.vim | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git 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 = "\<Esc>[38;2;%lu;%lu;%lum" + let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" + endif endif