Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

After exiting vim (7.3.3) in screen (4.00.02), not all of the background of my terminal returns to its initial color. Instead some of VIMs coloring remains. Can be fixed by using 'clear' or 'reset'. Really annoying.

Something I'm doing wrong?

Relevant parts of my screenrc:

shell -${SHELL}
startup_message off
autodetach on
vbell off
multiuser on
altscreen on
term "screen-256color"

Tested terminals are rxvt-unicode-256color and gnome-terminal, with bash (all recent).


share|improve this question
up vote 3 down vote accepted

You can put au VimLeave * !reset in your .vimrc

share|improve this answer
Accepting this as the answer. The problem somehow solved itself over the years, and nowadays I'm using tmux anyway. – nisc Jan 4 '12 at 22:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .