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