From: Larry Hynes <larry@larryhynes.com>
To: zsh-workers@zsh.org
Subject: vi-history-search(forward|backward) vicmd mappings
Date: Sat, 23 Jan 2016 23:30:07 +0000 (UTC) [thread overview]
Message-ID: <n812dv$ka2$1@ger.gmane.org> (raw)
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?
next reply other threads:[~2016-01-23 23:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-23 23:30 Larry Hynes [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='n812dv$ka2$1@ger.gmane.org' \
--to=larry@larryhynes.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).