From: Simon Ruderich Date: Tue, 16 Mar 2010 01:07:19 +0000 (+0100) Subject: zsh/rc: Also allow jj to exit insert mode. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6626db2476bcf9080b213dea22d7ae5d088d3a2c;p=config%2Fdotfiles.git zsh/rc: Also allow jj to exit insert mode. --- 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'