From 6626db2476bcf9080b213dea22d7ae5d088d3a2c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 16 Mar 2010 02:07:19 +0100 Subject: [PATCH] zsh/rc: Also allow jj to exit insert mode. --- zsh/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/rc b/zsh/rc index f635355..a7d81ca 100644 --- a/zsh/rc +++ b/zsh/rc @@ -37,6 +37,9 @@ setopt ignoreeof # Use Vi(m) style key bindings. bindkey -v +# Also use jj to exit insert mode. +bindkey -M viins 'jj' vi-cmd-mode + # I don't need the arrow keys, I use ^N and ^P for this (see below). bindkey -M viins -r '^[OA' bindkey -M viins -r '^[OB' -- 2.44.2