From 37a19fecee560a5980ee050924c04c2bcacf4151 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 16 Mar 2010 03:45:42 +0100 Subject: [PATCH] zsh/rc: Simplify bindkey a little bit more. viins is the default (after I run bindkey -v) and vicmd can be abbreviated with -a. --- zsh/rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/rc b/zsh/rc index d440e2f..228233b 100644 --- a/zsh/rc +++ b/zsh/rc @@ -38,12 +38,12 @@ setopt ignoreeof bindkey -v # Also use jj to exit insert mode. -bindkey -M viins 'jj' vi-cmd-mode +bindkey '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' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' +bindkey -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' # Also not in Vi mode. -bindkey -M vicmd -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' +bindkey -a -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' # FUNCTION SETTINGS -- 2.44.2