Ctrl-L redraws everything.
I'm doing it now in Putty and can see it happening.
The response is very fast to the host I'm connecting to, but if I press Ctrl-L enough times, I can catch a glimpse of the screen at various stages of a complete top-to-bottom redraw.
You're working around some weird problem.
Firstly, why would your session be corrupted over SSH? Putty-serial, maybe ... (I use that!)
One line off suggests that maybe the operating system on the other side has the wrong idea about the size of your terminal. If an application thinks that your terminal is larger than it really is, it will end up writing a character to the bottom right corner, causing a scroll.
Also check the value of $TERM
: what terminal type are you giving to Vim? A terminal type mismatch will also cause this kind of thing.
Thanks, but I certainly do not want to reload the file! – dotancohen – 2012-04-10T19:20:15.327
1Did you by any change try
:redraw
? – Bernhard – 2012-04-10T19:22:56.200Thanks, that does seem to be the right answer! Can you edit the answer to
:redraw
so that I can accept it as the right answer? Thanks! – dotancohen – 2012-04-10T20:11:23.697Of course, even I didn't know the answer was so obvious ;) – Bernhard – 2012-04-10T20:24:20.463