Fix colours in tmux
This commit is contained in:
parent
8bcd8e2c45
commit
7e1e068ff8
1 changed files with 6 additions and 1 deletions
5
vimrc
5
vimrc
|
@ -126,8 +126,13 @@ if has("eval")
|
||||||
set t_Co=16
|
set t_Co=16
|
||||||
endif
|
endif
|
||||||
colorscheme PaperColor
|
colorscheme PaperColor
|
||||||
|
|
||||||
|
if &term =~# '256color' && ( &term =~# '^screen' || &term =~# '^tmux' )
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
set termguicolors
|
set termguicolors
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
" Settings based on feature detection.
|
" Settings based on feature detection.
|
||||||
|
|
Loading…
Reference in a new issue