From d6232690903f23d1b650a0c16b8cad7f3bc76985 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 28 Oct 2020 14:16:55 +0100 Subject: [PATCH] [ADD][VIM] Enable 24-bit true color --- vim/.vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index ebe775c..23cb05a 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -190,6 +190,17 @@ set background=dark " Use onedark silent! colorscheme onedark + +" 24-bit true color {{{ +if (has("termguicolors")) + set termguicolors + " Need this hack-around because it is only applied on TERM='xterm' otherwise + if (!empty($TMUX) && !has('nvim')) + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + endif +endif +" }}} " }}} " Search parameters {{{