]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Simplify bindkey a little bit more.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index f55df48041f61980ff2d982ce52a3a53b06c6434..228233b5d48da404bf53d83f3dc762abc8baee88 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -37,6 +37,14 @@ setopt ignoreeof
 # Use Vi(m) style key bindings.
 bindkey -v
 
+# Also use jj to exit insert mode.
+bindkey 'jj' 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'
+# Also not in Vi mode.
+bindkey -a -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D'
+
 
 # FUNCTION SETTINGS