Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: vi-history-incremental-search?

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