Try using a more recent version. Vim 7.3.154 dates back from 2011-04-02;
the current patchlevel is 7.3.409. In the 255 fixes between your version
and the current one, some flicker problems have been fixed but I'm not
sure they are exactly what you're seeing. IMHO there's not much risk in
trying anyway.
See:
http://ftp.vim.org/pub/vim/patches/7.3/README
a one-line description of every patch to Vim 7.3
and if you want to compile your own Vim (not very hard)
http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
Best regards,
Tony.
--
press CTRL-ALT-DEL for more information
I don't remember, that any rendering issues have been fixed since the
release of 7.3 Try if scrolling using <C-E>/<C-U> works better, e.g.
fu! Scroll(up)
return ":\<C-U>exe \":norm! ". v:count1*winheight(0) . (a:up ?
'\<C-U>' : '\<C-E>')."\"\n"
endfu
nunmap <C-F>
nunmap <C-D>
nnoremap <expr> <C-F> Scroll(0)
nnoremap <expr> <C-D> Scroll(1)
regards,
Christian
i wonder if you are experiencing the scrolling jitters caused by
line wrap -- do the modules you scroll have long lines, and do
you have wrap turned on? if so, just to see if that's what's
causing what you see, try
:set nowrap
and tell us if you still see the jitters
Try setting the window option to a smaller value.
regards,
Christian
--
I suspect that you need to install the hardware driver for
your graphical card. I experienced gvim (gtk2) screen refresh
being very slow on my laptop to the point of being unusable. I
could see the lines being refreshed one by one. It happened
after my nvidia driver somehow got disabled. Reinstalling the
latest nvidia driver made gvim fast again In Ubuntu-10.04, it
was only a matter of doing choosing from main menu:
System->Administration->Hardware drivers
Regards
-- Dominique
I am not sure why, but this patch seems to fix it. This potentially
makes redrawing much slower, though.
diff --git a/src/move.c b/src/move.c
--- a/src/move.c
+++ b/src/move.c
@@ -2533,7 +2533,7 @@
}
}
- redraw_later(VALID);
+ redraw_later(NOT_VALID);
return retval;
}
regards,
Christian
--
I think, for each command a similar patch would need to be applied. But
I don't think this is reasonable. What Marko said, sounds reasonable,
but I don't know, what a good solution would be.
Mit freundlichen Gr��en
Christian
--
From: On Behalf Of Christian Brabandt
> On Fr, 03 Feb 2012, John Little wrote:
>
> > On Feb 4, 10:17 am, Mikey <smieciar...@gmail.com> wrote:
> > > Hello again.
> > >
> > > Accidentally I've discovered some new facts about described problem.
> > > In contrast to my previous posts now I dare to claim that the source
> > > of bug is in the Vim itself. Steps to reproduce: ...
> >
> > Yes, I get "it" too, but it's more of a flash than a flicker. Going
> > forward a screen Vim seems to clear the screen, then redraw it, but
> > gets interrupted and pauses a third of the way through, and at two
> > thirds. And yes, after a :vsplit page up doesn't flash.
I see a flicker, but it's expected, see below.
> I am not sure why, but this patch seems to fix it. This potentially
> makes redrawing much slower, though.
>
> diff --git a/src/move.c b/src/move.c
> --- a/src/move.c
> +++ b/src/move.c
> @@ -2533,7 +2533,7 @@
> }
> }
>
> - redraw_later(VALID);
> + redraw_later(NOT_VALID);
> return retval;
> }
This is without looking at the code, so ICBW...
This is a well-known although possibly fallen-into-disuse graphics
optimization: if you're partway through drawing the screen and you get
a command that will cause a redraw, abandon the current drawing and
start the next drawing.
The patch probably turns the optimization off, which should make the
scrolling slower because each view on the data is fully drawn before
the next navigation command occurs.
The fact that there is no flicker when scrolling up is an artifact of
the top-to-bottom drawing process.
I'm not sure this is something that needs to be fixed. I pasted the
10,001 lines to notepad and see the same thing when scrolling.
Hm. Although in notepad there is flicker in both directions, so I'm
wondering if the lack of flicker when scrolling up in gvim is in fact
a bug: the optimization is not applied correctly?
...Stu
PS: I've also tried to recompile with the line "redraw_later(NOT_VALID);" in move.c as suggested earlier, but this didn't have any noticeable effect.
Peter