Date: Sat, 3 Nov 2007 10:44:25 +0000 From: "Frank Shute" <frank@esperance-linux.co.uk> To: Philip Hallstrom <freebsd@philip.pjkh.com> Cc: Jerry McAllister <jerrymc@msu.edu>, Yuri <yuri@rawbw.com>, yuri@tsoft.com, freebsd-questions@freebsd.org Subject: Re: vim doesn't preserve the terminal content Message-ID: <20071103104425.GA54928@melon.esperance-linux.co.uk> In-Reply-To: <20071102180753.Q89485@bravo.pjkh.com> References: <1194038987.472b96cb09026@webmail.rawbw.com> <20071102222500.GB49562@gizmo.acns.msu.edu> <20071102180753.Q89485@bravo.pjkh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 02, 2007 at 06:09:15PM -0700, Philip Hallstrom 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? > > > >I don't know how to do that, but it is one Lunix (bash?) feature > >that I hate and would like to know how to change it to function > >the way it does under FreeBSD (tcsh). > > I hate it when it restores my screen and to prevent that in linux I added > this to my .vimrc: > > set t_ti = > set t_te = > > So read about whatever those options mean and set them accordingly... There's a bit about restoring the screen and setting these variables in vim help. :help rs -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071103104425.GA54928>