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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 stackoverflow.com Mar 29 '12 at 6:01

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

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

 
discard

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