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

vi-mode intuitive history searching

I'm trying to make vi-mode history-searching work for my concrete
brain/fingers.  In bash I'm used to just typing: "<Esc>/pattern"
followed by "nnnn".

That's very fast and is intuitive to me.  I've read through the
ML archives a bit on this topic
(http://www.zsh.org/mla/workers/1996/msg00666.html), and I still
can't get the bash behavior I'm looking for.  I'm trying:

    bindkey -a / vi-history-search-backward

But now "<Esc>/" gives this scary output:

    zsh: do you wish to see all 1568 possibilities (1568 lines)? 
    > Definitely N!

Am I using bindkey appropriately?

Actually, I can get the desired behavior if I instead type
"<Esc>k/", but I'd really like to avoid the "k".

                          _ _     ___
                          |V|icah |- lliott
                          " "     """
mde@xxxxxxxxxxxxxxxx            <><             http://MicahElliott.com
PGP: 0x7C07CBF0          ICQ: 369060435      Linux/Ubuntu: 417195/12440
HackerKey: v4sw6YUPCJhw5ln5pr7OPck2ma9u8Lw3m5l6Ui2e7t3b8LDMOen6a3XsMRr5

Attachment: signature.asc
Description: Digital signature

Messages sorted by: Reverse Date, Date, Thread, Author