If I'm not in a
screen session, then when exiting Vim I get a bash prompt below the remnants of the VIM window. A side effect of this is that my scrollback buffer is clobbered, especially if I have paged through a long file in VIM. The problem only occurs if I'm not in
screen, inside a
screen window VIM exits to show the bash prompt and the previous lines just as before.
I tried adding
t_te= to my
.vimrc to fix the problem, but the only effect that it has was to break VIM such that the problem occurs inside
screen as well as outside. Thus, I removed the line.
For good measure I do have
altscreen on in
This is on Ubuntu Server 12.04.1 LTS, with Bash 4.2.24, Screen 4.00, and VIM 7.3 (not vim-tiny), accessed over SSH in Cygwin version NT-6.1-WOW64 on a Windows 7 laptop.
EDIT: Note that in the same Cygwin install I can SSH into a different server (CentOS) and there VIM does not clobber the scrollback buffer. Therefore, I do not suspect a Cygwin issue. The CentOS machine does not have screen installed, and I did not have to add
set t_ti= t_te= to