From: "Kingsley G. Morse Jr." <change@nas.com>
To: zsh-users@sunsite.dk
Subject: Configuring zsh to leave keys in command mode after a vi "/" search
Date: Fri, 3 May 2002 22:26:39 -0700 [thread overview]
Message-ID: <20020503222639.A10707@debian1.loaner.com> (raw)
Hi everyone.
Does anyone happen to know how to configure zsh so the keyboard is left in
vi's *command mode* after finding the first matching command in zsh's
history with a "/" search?
FOR EXAMPLE ...
Say I want step through old "more" commands in zsh's history.
$ <esc>/more<cr>
?more_
$ more /etc/hosts
When I press "n" to find the next match ...
$ more /etc/hostsn
Oops! zsh was in vi's *insert* mode, interpreted the "n" literally and
appended it to the end of the command!
Is there a way to configure zsh so the "n" will be automatically
interpreted as the "next" command and retrieve the next matching "more"
command?
Thanks,
Kingsley
next reply other threads:[~2002-05-04 5:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-04 5:26 Kingsley G. Morse Jr. [this message]
2002-05-04 20:34 ` Bart Schaefer
2002-05-05 1:42 ` Kingsley G. Morse Jr.
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=20020503222639.A10707@debian1.loaner.com \
--to=change@nas.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).