Vim not restoring screen contents on Debian?

Posted by peu ping on Super User See other posts from Super User or by peu ping
Published on 2012-06-23T08:47:48Z Indexed on 2012/06/23 9:19 UTC
Read the original article Hit count: 162

Filed under:
|

I always thought Vim restored the previous contents of the screen upon closing. This allows me to remember what commands I was typing previously and what I wanted to do next.

Recently I've been using Debian 6 and Ubuntu (CLIs only) in a VM for a development project and I've been extremely annoyed with how Vim is operating. After I close the file its contents stay on the screen making me second guess whether I'm still in Vim or not, and having to use history to find out what I typed previously.

I've been unable to find any solution. Using tput smcup and rmcup for instance does absolutely nothing.

© Super User or respective owner

Related posts about vim

Related posts about debian