From 7aa8877e79dfbf5cc22e856c6a1bb8c26083b7ca Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 16 Mar 2010 02:06:05 +0100 Subject: [PATCH] zsh/rc: Disable arrow keys. --- zsh/rc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/zsh/rc b/zsh/rc index f55df48..f635355 100644 --- a/zsh/rc +++ b/zsh/rc @@ -37,6 +37,25 @@ setopt ignoreeof # Use Vi(m) style key bindings. bindkey -v +# 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' +# 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' + # FUNCTION SETTINGS -- 2.45.2