From 529a4f9db960ef780d522001952f97609def19bd Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 16 Apr 2014 13:35:01 -0700 Subject: [PATCH] [zsh] Add jj to get to vicmd mode and ^R to seach history --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshrc b/zshrc index 917acc5..cd574b7 100644 --- a/zshrc +++ b/zshrc @@ -82,6 +82,12 @@ function configure_zle_vim #{{{ zle -N edit-command-line bindkey -M vicmd v edit-command-line + # Use 'jj' to get to Cmd mode + bindkey -M viins 'jj' vi-cmd-mode + + # Backwards incremental history search on ^R in insert mode + bindkey -M viins '^R' history-incremental-search-backwards + # Use arrow keys to go up and down lines and/or history in insert mode bindkey -M viins "^[OA" up-line-or-history bindkey -M viins "^[[A" up-line-or-history