From owner-freebsd-questions@FreeBSD.ORG Mon Jun 15 04:56:40 2009 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 99ABC1065674 for ; Mon, 15 Jun 2009 04:56:40 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-301.bluehost.com (outbound-mail-301.bluehost.com [67.222.53.8]) by mx1.freebsd.org (Postfix) with SMTP id 669748FC18 for ; Mon, 15 Jun 2009 04:56:40 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: (qmail 25220 invoked by uid 0); 15 Jun 2009 04:56:40 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by outboundproxy6.bluehost.com with SMTP; 15 Jun 2009 04:56:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=eisj3RdQTc3WGemWtb3zx9W+U2ITGym4/nhrT0U5KkYepI1W81fDjDNGAwT6n085Iz8eFKgp4p/XuHO2BQdzf7d7W5eXltNJ2lXAwEwEJ5G4uU48GIJu2fX+vmNQdvJ3; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kokopelli.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MG4FL-00025u-Mu for freebsd-questions@FreeBSD.ORG; Sun, 14 Jun 2009 22:56:40 -0600 Received: by kokopelli.hydra (sSMTP sendmail emulation); Sun, 14 Jun 2009 22:51:06 -0600 Date: Sun, 14 Jun 2009 22:51:06 -0600 From: Chad Perrin To: FreeBSD Questions Message-ID: <20090615045106.GA56586@kokopelli.hydra> Mail-Followup-To: FreeBSD Questions References: <20090615024643.GA33420@thought.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Cc: Subject: Re: vim question... 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: Mon, 15 Jun 2009 04:56:40 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 14, 2009 at 09:18:42PM -0700, Michael K. Smith wrote: > On 6/14/09 7:46 PM, "Gary Kline" wrote: > >=20 > > the main reason i don't use vim is because of its [u]ndo > > command. as most of you can understand, there are a whole slew > > of times when i need to undo something. too often in vim, > > hitting 'u' --- sometimes > once accidentally --- has resulted in > > a small disaster. [[i have too many current/recent copies of > > my working files to do TOO much damage!]] Anyway, is there a > > means of setting the undo key to mimic vi/nvi? > >=20 > If you undo something and it was a mistake, just use the period (.). It's probably better to get in the habit of using :redo than the period to undo an undo, since :redo (or :red for not-very-short) can advance through several levels of undos, but the period can only repeat one single thing over and over again. If you're six levels back in undos, and you want to undo all six levels, but you use the period once, I think that'd wipe out all those levels of undo so they aren't recoverable. I haven't directly tested that recently, but that's how I recall it working back when I first learned about multiple undo/redo levels for Vim, lo these many moons ago when the world was young and dinosaurs roamed the Earth. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth H. L. Mencken: "Democracy is the theory that the common people know what they want and deserve to get it good and hard." --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAko10zoACgkQ9mn/Pj01uKWwGQCgrTeczVAvGf2AhfAhLSgY7yfd JbkAnROIn6iXLZGZMIiLpU8AdDDpHLwO =LIa2 -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--