[ADD][VIM] Enable 24-bit true color
This commit is contained in:
parent
05cb3c1c64
commit
d623269090
1 changed files with 11 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue