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.

This thing is driving me crazy. I have already searched the internet and SE and found a lot of related questions but none solve my problem.

I'm using Zsh inside tmux. Until a couple of days ago everything was working fine, but now when I exit vim, the contents of the buffer remain on the screen. I don't want that. I get that behaviour on less by passing -X option. The problem is that vim terminal configurations look fine:

:set t_ti?: t_ti=^[[?1049h :set t_te?: t_te=^[[?1049l

tmux's alternate-screen option is on.

I'm not sure where to look at now.

FWIW, here are my dotfiles: https://github.com/fuadsaud/J.A.R.V.I.S

share|improve this question
Your $TERM variable is wrong. stackoverflow.com/questions/15892092/weird-tmux-vim-through-ssh/… –  FDinoff Jan 8 at 18:36
Sorry, no success; same behaviour with both screen-256color and xterm-256color. –  Fuad Saud Jan 8 at 18:45
The only two valid options are screen or screen-256color? What does your TERM variable default to? –  FDinoff Jan 8 at 18:47
screen; that also fails :( –  Fuad Saud Jan 8 at 18:56
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


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

Browse other questions tagged or ask your own question.