Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flickering screen when scrolling in Gvim

Tags:

vim

So in vim all kinds of scrolling works perfectly, but in Gvim when scrolling screen flickers, especially noticable on faster scrolls like pgdn/pgup, Ctrl+U and Ctrl+D. Same thing when I scroll by dragging slider with mouse. I tried different background colors, but it does not make any difference.

Any ideas how to fix this?

like image 908
estranged Avatar asked Aug 06 '14 21:08

estranged


1 Answers

Ask the developer(s) to make sure that a screen redraw is double-buffered.

I remember running into this years ago when I was using plain, non-antialiased X11 draw calls in Gvim (around version 6.0). In that case, the drawing speed was not-noticeable. When using anything anti-aliased, I could observe the flicker.

Obviously, the double-buffering is not necessary for the original terminal code and I'm assuming that the GUI updates are derived from the original terminal update code.

NOTE: This answer is only here for a reference for future development.

like image 197
David Harrison Avatar answered Nov 16 '22 13:11

David Harrison