Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

During using Gnu screen(screen manager with VT100/ANSI terminal emulation), I fall across a trouble that when I quit from the vim, screen will not clear the screen automatically.Althrough I can clear the screen manually(ctrl+l),but I really want the screen clear the sreen automatically.

share|improve this question

migrated from Mar 29 '12 at 6:01

This question came from our site for professional and enthusiast programmers.

1 Answer 1

If you want the terminal to look the same it did before you called vim that is, put the following line in your .screeenrc:

altscreen on

then when you start a new screen it should work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.