zsh-workers
 help / color / mirror / code / Atom feed
* vi-history-search(forward|backward) vicmd mappings
@ 2016-01-23 23:30 Larry Hynes
  2016-01-24  0:00 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Hynes @ 2016-01-23 23:30 UTC (permalink / raw)
  To: zsh-workers

Hullo

The default vicmd mappings for

    vi-history-search-forward (?)

and

    vi-history-search-backward (/)

have confused me.

vi(m)-like behaviour is always to have '/' search forward and
'?' search backward.

Say my, notional, .zhistory file contains:

    foo
    bar
    baz
    qux

The search appears to begin at the last line 'qux' - as if the
history file is read in as 'vi +G .zhistory' - so to search
backwards for 'foo', I would - in vi - enter '<ESC>?' and, once
there, enter '/' to search forwards for 'baz' but it seems to be
the opposite in zsh.

In fact, if one enters '<ESC>?' on a zsh command line with
'bindkey -e' in effect the mini-buffer prompt becomes '/' to
signify a forward search, and '<ESC>/' produces a '?' to signify
a backward search, so I propose that the default mappings are,
perhaps, backwards?

Or am I missing something?


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

end of thread, other threads:[~2016-01-29  3:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-23 23:30 vi-history-search(forward|backward) vicmd mappings Larry Hynes
2016-01-24  0:00 ` Bart Schaefer
2016-01-24 11:30   ` Larry Hynes
2016-01-24 18:41     ` Bart Schaefer
2016-01-29  3:30       ` Larry Hynes

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).