From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 23:39:34 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 7D71416A417 for ; Fri, 2 Nov 2007 23:39:34 +0000 (UTC) (envelope-from freebsd-questions@voidcaptain.com) Received: from mx4.x15.net (mx4.x15.net [69.55.237.194]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC1F13C4BC for ; Fri, 2 Nov 2007 23:39:34 +0000 (UTC) (envelope-from freebsd-questions@voidcaptain.com) Received: from j1.x15.net [63.196.213.76] by mx4.x15.net with ESMTP id 611291731X1Io5Tk000MmPKq; Fri, 02 Nov 2007 22:59:04 +0000 Message-ID: <472BABF5.2000603@voidcaptain.com> Date: Fri, 02 Nov 2007 16:00:05 -0700 From: Pete Slagle MIME-Version: 1.0 To: Yuri References: <1194038987.472b96cb09026@webmail.rawbw.com> In-Reply-To: <1194038987.472b96cb09026@webmail.rawbw.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 23:39:34 -0000 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. 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