zsh-users
 help / color / mirror / code / Atom feed
* Configuring zsh to leave keys in command mode after a vi "/" search
@ 2002-05-04  5:26 Kingsley G. Morse Jr.
  2002-05-04 20:34 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Kingsley G. Morse Jr. @ 2002-05-04  5:26 UTC (permalink / raw)
  To: zsh-users

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


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

end of thread, other threads:[~2002-05-05  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-04  5:26 Configuring zsh to leave keys in command mode after a vi "/" search Kingsley G. Morse Jr.
2002-05-04 20:34 ` Bart Schaefer
2002-05-05  1:42   ` Kingsley G. Morse Jr.

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