From cb300fb006c97300a80d00ede9c88a4baec3e2f6 Mon Sep 17 00:00:00 2001 From: Ashley Dev Date: Thu, 19 May 2011 09:50:25 -0700 Subject: [PATCH] allow j and k to do (down|up)-line-or-search in vicmd mode --- plugins/vi-mode/vi-mode.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index aa39081f..2263b8fd 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -67,9 +67,11 @@ else fi bindkey "^P" up-line-or-search +bindkey -M vicmd "k" up-line-or-search bindkey -M vicmd "^k" up-line-or-search bindkey -M viins "^k" up-line-or-search bindkey "^N" down-line-or-search +bindkey -M vicmd "j" down-line-or-search bindkey -M vicmd "^j" down-line-or-search bindkey -M viins "^j" down-line-or-search