From cd96842c3967b759651afcb00f0e2bd63ddc7b06 Mon Sep 17 00:00:00 2001 From: tokiclover Date: Thu, 18 Sep 2014 17:45:04 +0200 Subject: [PATCH] customs/key-bindings.zsh: added --- customs/key-bindings.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 customs/key-bindings.zsh diff --git a/customs/key-bindings.zsh b/customs/key-bindings.zsh new file mode 100644 index 00000000..ef616c4b --- /dev/null +++ b/customs/key-bindings.zsh @@ -0,0 +1,11 @@ +if zstyle -t ':prezto:module:editor' key-bindings 'emacs' 'vi'; then + for keymap in 'emacs' 'viins'; do + bindkey -M "$keymap" "\EOw" beginning-of-line + bindkey -M "$keymap" "\EOq" end-of-line + bindkey -M "$keymap" "\EOt" backward-char + bindkey -M "$keymap" "\EOv" forward-char + bindkey -M "$keymap" "\EOx" up-line-or-history + bindkey -M "$keymap" "\EOr" down-line-or-history + done +fi +unset keymap