[ADD][VIM] Enable 24-bit true color
This commit is contained in:
parent
05cb3c1c64
commit
d623269090
11
vim/.vimrc
11
vim/.vimrc
|
@ -190,6 +190,17 @@ set background=dark
|
||||||
|
|
||||||
" Use onedark
|
" Use onedark
|
||||||
silent! colorscheme 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 {{{
|
" Search parameters {{{
|
||||||
|
|
Loading…
Reference in a new issue