Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi-history-incremental-search?
- X-seq: zsh-users 5321
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Steve Talley <stephen.talley@xxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: vi-history-incremental-search?
- Date: Fri, 30 Aug 2002 13:16:38 -0700
- In-reply-to: <Pine.LNX.4.44.0208301139560.23762-100000@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.44.0208301139560.23762-100000@xxxxxxxxxxxxxxxx>
On Aug 30, 11:44am, Wayne Davison wrote:
>
> Bart Schaefer wrote:
> > Even in emacs mode you can't exit from incremental search and then
> > resume the same search again later.
>
> I'm not sure what you mean here. Type Ctrl-R twice and it will start a
> new search with the previous search string.
Hrm, I swear I tried it in 4.0.6 and it didn't work. But I just tried
again (with 4.0.3, I haven't upgraded the machines at work yet) and it
worked, so I must have flubbed something last night.
In that case, Steve can do:
function vi-repeat-incremental-search-backward {
bindkey -e
zle -U $'\C-r'
zle history-incremental-search-backward
bindkey -v
}
zle -N vi-repeat-incremental-search-backward
bindkey -a N vi-repeat-incremental-search-backward
(The "bindkey" commands shouldn't be necessary, but the keymap for h-i-s-b
is messed up when you enter it from vicmd.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author