[ADD][VIM] Enable 24-bit true color

This commit is contained in:
Bruno BELANYI 2020-10-28 14:16:55 +01:00
parent 05cb3c1c64
commit d623269090
1 changed files with 11 additions and 0 deletions

View File

@ -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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
endif
" }}}
" }}}
" Search parameters {{{