Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange changing background color in VIM solarized

I don't know exactly how to describe this issue, but when using solarized colorscheme theme in terminal vim, I'm noticing that when I edit some text various ends of lines (not "line-endings" but from the last letter to the end of the buffer) will be somewhat highlighted. Once I move for example using <C-e>, or <C-y>, the weird highlighting fixes itself and becomes the background color.

Ideally I'd like to fix this and just have my background always be the background-color. But any insight as to what's going on/ being highlighted would be highly appreciated.

Thanks,

after having just edited text with weird highlightingafter pressing <C-e> enter image description here

like image 288
mazlix Avatar asked Jan 16 '23 09:01

mazlix


1 Answers

As explained here, disable Background Color Erase (BCE) by clearing the t_ut terminal option (run :set t_ut= in Vim and then press Control+L to refresh the terminal's display) so that color schemes work properly when Vim is used inside tmux and GNU screen.

like image 188
sunaku Avatar answered Jan 21 '23 08:01

sunaku