From owner-freebsd-questions Sun May 3 18:18:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10925 for freebsd-questions-outgoing; Sun, 3 May 1998 18:18:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA10917 for ; Sun, 3 May 1998 18:18:25 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id SAA05294; Sun, 3 May 1998 18:17:55 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma005288; Sun May 3 18:17:53 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id SAA06085; Sun, 3 May 1998 18:17:53 -0700 (PDT) From: Archie Cobbs Message-Id: <199805040117.SAA06085@bubba.whistle.com> Subject: Re: vi insert mode In-Reply-To: <199805032308.TAA00670@pollux.loco.net> from CyberPeasant at "May 3, 98 07:08:19 pm" To: djv@bedford.net Date: Sun, 3 May 1998 18:17:53 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG CyberPeasant writes: > > When editing a file using "vi", if you press "i", then , > > i.e., go into insert mode and insert nothing, then the cursor > > ends up one character to the left of where you started. Actually > > this happens no matter how many characters you insert. > > > > Is there any way to turn off this non-intuitive behavior? > > If you exit insert mode, and decide to keep going, use 'a'. > It does the right thing. In fact, it looks like you should be > using 'a' anyway... it seems to be what you expect of 'i'. Not the same since 'a' immediately advances the cursor one space (but at least when you press 'a' then escape the cursor goes back to where it was when you started, which is not true of 'i'). BTW, I've been using vi for over 10 years... it's still not intuitive :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message