Open vincentqb opened 5 years ago
For reference:
I think GitHub has changed its diff colours so there's now black text everywhere. I recall copying the red-on-red/green-on-green pairings from the intra-line diff highlight.
What I'm seeing is different: the lines to be removed are solid dark red:
~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'cormacrelf/vim-colors-github'
call plug#end()
colorscheme github
This is a bug on the sense that the fallback should be readable. But you should probably find a terminal+environment+configuration that supports termguicolors. The scheme will look way better.
Thanks! The following works, though I get a gray background behind the red/green text.
call plug#begin('~/.vim/plugged')
Plug 'cormacrelf/vim-colors-github'
call plug#end()
" set Vim-specific sequences for RGB colors
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
colorscheme github
Without tmux, I get your image. With tmux, I get a gray background for the modified text as show in image here, but still readable. :)
With tmux, you should be setting TERM and some vim settings differently. I think I check against TERM in vim before flipping switches. Totally possible to have termguicolors within tmux and without , just takes more googling.
In Ubuntu 18.04.02 LTS with gnome terminal: