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 {{{