2

I am a vim user looking for help for a problem with my vim colorscheme. When I start everything looks fine and is usable until I start scrolling down. Once I scroll the background takes on the color of the terminal background.

The terminal I use is gnome-terminal on Fedora 24

To show the clear difference I made my gnome terminal clear.

In Vim Before Scroll: enter image description here

After Scroll: enter image description here

Here's my .vimrc and its setup to be simple hopefully :D

https://github.com/TheGalacticNinja/vimrc/blob/master/.vimrc

Martin Tournoij
  • 62,054
  • 25
  • 192
  • 271
Robbie
  • 21
  • 1

1 Answers1

2

Try adding:

set t_ut=

to ~/.vimrc

I had the same issue on Debian 9 with Gnome Terminal and Mate Terminal, and on some Fedora and Centos virtual machines where I did not have GUI installed. Adding this line solved the problem.

miloske85
  • 27
  • 3
  • 2
    Note that your answer has been automatically flagged as low quality due to the length of its content. I will not delete it as it tries to answer the question but it would be more useful for OP and for future readers if you added some explanations about what this setting does and why OP would want to use it in this case. – statox Apr 23 '18 at 14:04
  • @Robbie t_ut is 'clearing uses the current background color', so if nothing else it's worth running :set t_ut to see how it's currently set. – brhfl May 25 '18 at 04:01