Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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).

Merci.

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.