From owner-freebsd-chat Thu Apr 20 8:48:22 2000 Delivered-To: freebsd-chat@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id 529FD37BE30 for ; Thu, 20 Apr 2000 08:46:50 -0700 (PDT) (envelope-from rsidd@theory1.physics.iisc.ernet.in) Received: (qmail 7728 invoked by uid 211); 20 Apr 2000 15:46:28 -0000 Date: Thu, 20 Apr 2000 21:16:28 +0530 From: Rahul Siddharthan To: David Scheidt Cc: Alexander Langer , Christian Weisgerber , freebsd-chat@FreeBSD.ORG Subject: Re: ViM vs. Emacs Message-ID: <20000420211628.A7696@physics.iisc.ernet.in> References: <20000420175141.B5893@physics.iisc.ernet.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from dscheidt@enteract.com on Thu, Apr 20, 2000 at 09:38:32AM -0500 X-Operating-System: FreeBSD 3.4-STABLE i386 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Some things like multiple-level undo/redo work differently. > > I like vim's way of doing that better. Depends what you're > > used to, I suppose. But on vim, you can recover your unmodified > > document by pressing u again and again: on nvi I think the ability > > to recover past changes is more limited. > > :e! Suppose you want to go back only part of the way? You did some complicated stuff which you want to keep, then you did some other complicated stuff which you want to undo. With vim you just need to keep pressing "u" till you're satisfied. With nvi you may not be able to do it. Being used to the vim keybindings, I initially thought nvi didn't have multiple undo. Then I found it did, and started using it, but then I got into the above situation a few times and didn't like it, so it's "alias vi vim" now. > u should toggle changes. If you want multiple level undo, do it right, not > by overloading basic functionality. It's not clear to me what "right" is. In most programs (gimp, typical word processors, etc) undo keeps undoing previous changes, redo keeps redoing them. That certainly seems much more sensible to me. And if you like old-fashioned vi behaviour, :set compatible, as someone else pointed out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message