Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 1998 18:17:53 -0700 (PDT)
From:      Archie Cobbs <archie@whistle.com>
To:        djv@bedford.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: vi insert mode
Message-ID:  <199805040117.SAA06085@bubba.whistle.com>
In-Reply-To: <199805032308.TAA00670@pollux.loco.net> from CyberPeasant at "May 3, 98 07:08:19 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
CyberPeasant writes:
> > When editing a file using "vi", if you press "i", then <escape>,
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805040117.SAA06085>