Is there a command for switch to vicmd mode in zsh?

view story

http://unix.stackexchange.com – I have mapped alt-k and alt-j for browsing history, but I would like to switch vicmd automatically whenever I call up a history entry, because most of the time I need to move the cursor to a certain position and make some changes. Here is my current settings in .zshrc, what should I do to reach the goal mentioned above? bindkey '^[k' up-line-or-history bindkey '^[j' down-line-or-history Thanks! (HowTos)