Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi mode and history-search key binding
- X-seq: zsh-users 10322
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: vi mode and history-search key binding
- Date: Sat, 27 May 2006 22:17:13 -0700
- In-reply-to: <0CDE54A6-04FA-4821-A51D-26552316040A@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <0CDE54A6-04FA-4821-A51D-26552316040A@xxxxxxxxxxxxxxxxxx>
On May 27, 8:39pm, William Scott wrote:
}
} bindkey '\e[A' vi-history-search-backward
} bindkey '\e[B' vi-history-search-forward
This binds those keys in the main keymap, which by default is the emacs
keymap. Have you somewhere earlier in your startup files executed a
"bindkey -v" command? If you did, then those bind keys in the viins
keymap (insert mode), not the vicmd keymap (command mode). In which
mode are you attempting to invoke the search?
} It appears to have no effect. Is this intended?
The effect you should see is that a quetion-mark (for backward) or slash
(for forward) prompt appears below the PS1 prompt; you then enter the
string to search for. If that doesn't happen, you've probably bound
the keys in the wrong keymap.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author