GNU Screen - Removing vim window after quit
Enable the altscreen
option in ~/.screenrc
.
Full-screen programs use a terminal feature called "alternate screen", which has a separate screen buffer and (often) minor behavior changes to adapt to such interfaces. The program enters the 'alternate' screen when started, and goes back to 'normal' when exiting.
Since Screen itself acts as a terminal emulator, it has to emulate the alt-screen feature as well. All other terminal emulators enable this feature by default, but Screen has it hidden behind the altscreen
option for some historical reasons.
Add this line to your ~/.screenrc:
altscreen on