From owner-freebsd-questions@FreeBSD.ORG Sat Nov 3 12:57:32 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5C4116A417 for ; Sat, 3 Nov 2007 12:57:32 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id 822EB13C4BD for ; Sat, 3 Nov 2007 12:57:32 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.50) id 1IoGUR-0002uU-H8 for freebsd-questions@freebsd.org; Sat, 03 Nov 2007 10:44:31 +0000 Received: from esperance.zetnet.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with SMTP id lA3AiUjC001950 for ; Sat, 3 Nov 2007 10:44:31 GMT Received: (qmail 54951 invoked by uid 1001); 3 Nov 2007 10:44:25 -0000 From: "Frank Shute" Date: Sat, 3 Nov 2007 10:44:25 +0000 To: Philip Hallstrom Message-ID: <20071103104425.GA54928@melon.esperance-linux.co.uk> References: <1194038987.472b96cb09026@webmail.rawbw.com> <20071102222500.GB49562@gizmo.acns.msu.edu> <20071102180753.Q89485@bravo.pjkh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071102180753.Q89485@bravo.pjkh.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 6.2-STABLE i386 X-Organisation: 'Esperance Linux' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (zetnet.co.uk [194.247.46.1]); Sat, 03 Nov 2007 10:44:31 +0000 (GMT) Cc: Jerry McAllister , Yuri , yuri@tsoft.com, freebsd-questions@freebsd.org Subject: Re: vim doesn't preserve the terminal content X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 12:57:32 -0000 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