zsh-workers
 help / color / mirror / code / Atom feed
* zsh, vi mode, vihistorysearchbackward
@ 1996-06-19 16:44 J.D. Laub
  1996-06-19 17:04 ` Zefram
  0 siblings, 1 reply; 7+ messages in thread
From: J.D. Laub @ 1996-06-19 16:44 UTC (permalink / raw)
  To: zsh-workers

I've a question with the following revision:

% rcsdiff -r1.7 -r1.8 zle_bindings.c
2c2
<  * $Id: zle_bindings.c,v 1.6 1995/03/11 06:17:29 [name omitted to protect the good-intentioned 8-) ]
---
>  * $Id: zle_bindings.c,v 1.7 1995/03/20 22:11:36 [name omitted to protect the good-intentioned 8-) ]
[...]
541c547
<     /* / */ z_vihistorysearchbackward,
---
>     /* / */ z_vihistorysearchforward,
557c563
<     /* ? */ z_vihistorysearchforward,
---
>     /* ? */ z_vihistorysearchbackward,

The above mappings appear in vicmdbind, and my question concerns
running zsh in vi mode.

I can see how "/" should seem to be "search forward" and "?" should be
"search backward", but this works exactly opposite as it did before.
Most of the time I want to just hit "ESC-/" to search back a few lines
to a previous command, but with the above (default) bindings I have to
add the shift key to make it "ESC-?", which is more awkward.

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?
Discussion?
-- 
J.D. Laub (Laubster) HBOC/CliniCom|"I think you're very, very, very, very, very,
jdl@clinicom.com     Boulder,CO   |very, very, very, very, ..." - Flying Lizards



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-06-20  0:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-19 16:44 zsh, vi mode, vihistorysearchbackward J.D. Laub
1996-06-19 17:04 ` Zefram
1996-06-19 18:01   ` Hrvoje Niksic
1996-06-19 19:21     ` Zefram
1996-06-19 18:58   ` Barton E. Schaefer
1996-06-19 22:47   ` Richard Coleman
1996-06-20  0:10     ` Vinnie Shelton

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).