Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 02, 2007 at 04:00:05PM -0700, Pete Slagle wrote:
> Yuri wrote:
>=20
> > 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.
> >=20
> > How do I make vim preserve the screen?
> >=20
> > Thanks,
> > Yuri
>=20
> 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 ;-)
=20
> Try holding the control key and middle-clicking with the mouse on an
> xterm window. You should see an "Enable Alternate Screen Switching" optio=
n.
>=20
> 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

--=20
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQFHLNeXtIqByHxlDocRAlCuAJ9tirJiu0zVg7u2STjf7GwKyVfBggCfaXuG
Kuwbc/5xvJCWoXkkHeIM4Vg=
=19vE
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071103201833.GA9651>