Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Configuring zsh to leave keys in command mode after a vi "/" search
- X-seq: zsh-users 4913
- From: "Kingsley G. Morse Jr." <change@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Configuring zsh to leave keys in command mode after a vi "/" search
- Date: Fri, 3 May 2002 22:26:39 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: "Kingsley G. Morse Jr." <change@xxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author