Date: Sat, 3 Nov 2007 16:18:33 -0400 From: Thomas Dickey <dickey@radix.net> To: Pete Slagle <freebsd-questions@voidcaptain.com> Cc: Yuri <yuri@rawbw.com>, yuri@tsoft.com, freebsd-questions@freebsd.org Subject: Re: vim doesn't preserve the terminal content Message-ID: <20071103201833.GA9651@saltmine.radix.net> In-Reply-To: <472BABF5.2000603@voidcaptain.com> References: <1194038987.472b96cb09026@webmail.rawbw.com> <472BABF5.2000603@voidcaptain.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFHLNeXtIqByHxlDocRAlCuAJ9tirJiu0zVg7u2STjf7GwKyVfBggCfaXuG Kuwbc/5xvJCWoXkkHeIM4Vg= =19vE -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071103201833.GA9651>
