From: Simon Ruderich Date: Tue, 16 Mar 2010 01:15:42 +0000 (+0100) Subject: zsh/rc: Bindkey can unbind multiple keys. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7bf679fea082220666c375e347f59f0a4ccde907;p=config%2Fdotfiles.git zsh/rc: Bindkey can unbind multiple keys. --- diff --git a/zsh/rc b/zsh/rc index a7d81ca..d440e2f 100644 --- a/zsh/rc +++ b/zsh/rc @@ -41,23 +41,9 @@ bindkey -v 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' -bindkey -M viins -r '^[OC' -bindkey -M viins -r '^[OD' -bindkey -M viins -r '^[[A' -bindkey -M viins -r '^[[B' -bindkey -M viins -r '^[[C' -bindkey -M viins -r '^[[D' +bindkey -M viins -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' # Also not in Vi mode. -bindkey -M vicmd -r '^[OA' -bindkey -M vicmd -r '^[OB' -bindkey -M vicmd -r '^[OC' -bindkey -M vicmd -r '^[OD' -bindkey -M vicmd -r '^[[A' -bindkey -M vicmd -r '^[[B' -bindkey -M vicmd -r '^[[C' -bindkey -M vicmd -r '^[[D' +bindkey -M vicmd -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' # FUNCTION SETTINGS