www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/07/06:52:59

Date: Tue, 7 Dec 1999 12:01:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Lars Eighner <eighner AT io DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: vim key commands - not too kool
In-Reply-To: <Ou8S4AwZqwsC092yn@io.com>
Message-ID: <Pine.SUN.3.91.991207120133.29709C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 6 Dec 1999, Lars Eighner wrote:

> |> Here's the Emacs sequence that does the same:
> |> 
> |>   Ctrl-R (search in reverse)
> |>   o (search for o)
> |>   DEL (delete o)
> |>   i (insert i)
> |... and Ctrl-E (to go back to eol)
> |
> |(That's five key strokes, a savings of an additional 17%)
> 
> I think for the minimum in emacs that meets all the conditions
> of the problem, you have to begin by dropping a mark and end
> by switching the cursor and the mark.

That's not true: starting the search with Ctrl-R automatically puts a
mark at the original place.  So instead of Ctrl-E, going back to the
mark (hold Ctrl and press `x' twice) is all that's needed to return to
the original place.

> The only keystroke saved is that from not having to terminal
> the search string, owing to progressive searching in emacs --
> which tends to make me dizzy without adding any real usefulness
> that I can see.

It saves a lot of typing, and also lets you search without constantly
moving your eyes between the place where you specify the search string
and the text you are searching.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019