From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id JAA27104 for ; Thu, 20 Jun 1996 09:04:10 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA01488; Wed, 19 Jun 1996 18:48:09 -0400 (EDT) Resent-Date: Wed, 19 Jun 1996 18:48:09 -0400 (EDT) Message-Id: <199606192247.SAA03664@redwood.skiles.gatech.edu> To: zsh-workers@math.gatech.edu Subject: Re: zsh, vi mode, vihistorysearchbackward In-reply-to: Your message of "Wed, 19 Jun 1996 18:04:50 BST." <27400.199606191704@stone.dcs.warwick.ac.uk> Date: Wed, 19 Jun 1996 18:47:12 -0400 From: Richard Coleman Resent-Message-ID: <"YJG_W1.0.AN.eE8on"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1370 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > >I can see how "/" should seem to be "search forward" and "?" should be > >"search backward", but this works exactly opposite as it did before. > > We are trying to emulate vi, rather than ksh. As a vi user, I find the > new bindings much more intuitive -- ? is a backward search, so that's > what I use to search backward through the history. > > > >I've used a couple bindkeys in my own .zshrc to switch the two > >functions (putting "backwards" back on "/"), but I'm pushing others > >here to switch from ksh to zsh, and I think the default behavior > >will confuse them (since the default bindings work exactly opposite > >as ksh in vi mode). Anybody (dis)agree with switching them back? > I think the interpretation should be that "/" searches the `natural' direction (whatever that is) and "?" searches the reverse of that. With that interpretation, the previous behavoir is more natural. As Bart said, you rarely ever want to search forward (down) the history. The `natural' direction is always to search up the history. rc