On Fri, Nov 02, 2007 at 04:00:05PM -0700, Pete Slagle wrote: > Yuri wrote: > > > I use vim both on Linux and FreeBSD. > > On Linux after I exit vim original screen content is restored. > > On FreeBSD vim leaves the last content viewed in vim. > > > > How do I make vim preserve the screen? > > > > Thanks, > > Yuri > > This behavior is controlled by xterm settings.
I didn't notice that he mentioned xterm (if he's not using xterm, it's harder to fix ;-) > Try holding the control key and middle-clicking with the mouse on an > xterm window. You should see an "Enable Alternate Screen Switching" option. > > See 'man 1 xterm' or http://www.x.org/archive/X11R6.8.0/doc/xterm.1.html http://invisible-island.net/xterm/xterm.faq.html#xterm_tite http://invisible-island.net/xterm/manpage/xterm.html -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgpRWaizlHUvA.pgp
Description: PGP signature