When I run vim in a win32 console window, after I exit I end up with a bunch of junk on the screen - old command output, etc, because cmd doesn't clear line contents when scrolling down. I've included an example below:
Is there a way to make vim clear the whole screen buffer (not just the part that is visible), either when starting it or on exit? Or to save the entire state (buffer contents, scroll position, and cursor position) and restore afterward?