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

  • can you link to your vimrc for more information. Also try :set t_Co=256 – Franklin Byaruhanga Oct 1 '16 at 9:13
  • Are you using any terminal multiplexer? What's the value of $TERM? – xaizek Oct 1 '16 at 13:40
  • please link to .vimrc ! or try to use urxvt and see if the problem persists ! – Ashok Oct 1 '16 at 21:00
  • Also how is urxvt...Ive been thinking of switiching over to using that for my linux machines? – Robbie Oct 2 '16 at 0:08
  • @Robbie I can tell a lot about urxvt, but I want you to use and then tell about how good it is, because everyone has different preferences. The main why I switched is the speed. – Ashok Oct 2 '16 at 6:46
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.

  • 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 4:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.