morhetz / gruvbox

Retro groove color scheme for Vim
13.63k stars 1.11k forks source link

Scrolling breaks gruvbox #267

Closed paulduf closed 4 years ago

paulduf commented 5 years ago

Hello

I have a bug with gruvbox when scrolling with my mouse in vim.

Below is the same file when I use first: my mouse scrolling and second: PageDown. Mouse scrolling fails to "trigger gruvbox" somehow but I can't be more precise since I'm newbie with vim programming.

Does anyone know how to fix this?

Thanks Screenshot from 2019-03-20 10-00-25 Screenshot from 2019-03-20 10-03-25

rbong commented 5 years ago

It appears to be a terminal-specific drawing issue. That looks like your background not being drawn over by Vim. Vim only redraws parts of the terminal window when it needs to and certain terminals can throw it off.

You could try a few different different things. If this is something that doesn't happen often, the :redraw! command could clear it up. You could also set your terminal's background color to gruvbox's colors. Or, you could try a different terminal. This doesn't happen for me on alacritty, which is cross platform, so you may have luck with it.

morhetz commented 4 years ago

https://superuser.com/questions/457911/in-vim-background-color-changes-on-scrolling