From: Simon Ruderich Date: Sat, 7 May 2011 12:23:57 +0000 (+0200) Subject: Use jk in addition to jj to exit Vi insert mode. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=8d5c5f1ba0966a3234dc6b1e3cb38c853d9bdf26;p=config%2Fdotfiles.git Use jk in addition to jj to exit Vi insert mode. jk feels a little faster. --- diff --git a/inputrc b/inputrc index daa4dec..20832da 100644 --- a/inputrc +++ b/inputrc @@ -19,8 +19,9 @@ set editing-mode vi # KEY BINDINGS -# Also use jj to exit insert mode. +# Use jj and jk to exit insert mode. "jj": vi-movement-mode +"jk": vi-movement-mode "\C-p": previous-history "\C-n": next-history diff --git a/zsh/rc b/zsh/rc index f38761f..8e3e2e0 100644 --- a/zsh/rc +++ b/zsh/rc @@ -37,8 +37,9 @@ setopt ignoreeof # Use Vi(m) style key bindings. bindkey -v -# Also use jj to exit insert mode. +# Use jj and jk to exit insert mode. bindkey 'jj' vi-cmd-mode +bindkey 'jk' vi-cmd-mode # I don't need the arrow keys, I use ^N and ^P for this (see below). bindkey -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D'