Currently when I am not using screen utility, I am able to see the VIM content wiped out of the display when I quit VIM. However when I am using GNU Screen utility and opening a file in one of the screen window and closing it, I can see the trailing file content on the display. It’s not wiping out the file content from the display the way it does when I am not using GNU Screen.
I found the below post where it has been discussed without GNU Screen.
How to set the bash display to not show the vim text after exit?
In my case, in both the scenario [with and without GNU Screen] the Terminal Type is “xterm”. But the behavior is different when I close a VIM file.
Kindly help.
TERM
toscreen-bce
orscreen
while running screen?