From 8d5c5f1ba0966a3234dc6b1e3cb38c853d9bdf26 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 7 May 2011 14:23:57 +0200 Subject: [PATCH] Use jk in addition to jj to exit Vi insert mode. jk feels a little faster. --- inputrc | 3 ++- zsh/rc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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' -- 2.45.2