From: Steve Talley <stephen.talley@sun.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: vi-history-incremental-search?
Date: Thu, 29 Aug 2002 14:49:18 -0600 [thread overview]
Message-ID: <20020829204918.GE9260@.central.sun.com> (raw)
Hello,
I am using the vi keymap (bindkey -v). I have these lines in my
.zshrc:
bindkey -M vicmd "?" vi-history-search-backward
bindkey -M vicmd "/" vi-history-search-forward
I really like the ability to see incremental searches, so I changed
this to:
bindkey -M vicmd "?" history-incremental-search-backward
bindkey -M vicmd "/" history-incremental-search-forward
Unfortunately, now "n" (vi-repeat-search) and "N" (vi-rev-repeat-
search) don't seem to work after the search is completed. That is,
they don't perform the same search from that point in the history.
For example, with this history:
...
100 echo foobar
101 echo blah
102 echo woofoo
When I use vi-history-search-backward to search for "foo" (matched at
102), I can use "n" (vi-repeat-search) to perform the same search
again (matched at 100). But if I initially use
history-incremental-search-backward to search for "foo", then "n"
(vi-repeat-search) doesn't continue the search for "foo".
Is there any way to modify either vi-history-search-* or
history-incremental-search-* to come up with a hybrid
vi-history-incremental-search*?
Thanks,
Steve
next reply other threads:[~2002-08-29 20:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-29 20:49 Steve Talley [this message]
2002-08-30 3:26 ` vi-history-incremental-search? Bart Schaefer
2002-08-30 18:44 ` vi-history-incremental-search? Wayne Davison
2002-08-30 20:16 ` vi-history-incremental-search? Bart Schaefer
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=20020829204918.GE9260@.central.sun.com \
--to=stephen.talley@sun.com \
--cc=zsh-users@sunsite.dk \
/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).