6 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
7 # Released under the terms of the Artistic Licence 2.0
9 # Source repository: git://git.madduck.net/etc/zsh.git
12 # use emacs keybindings by default
15 # history expansion on pressing space
16 #bindkey ' ' magic-space
18 # repeat the previous shell-word ($WORDCHARS)
19 bindkey '\e=' copy-prev-shell-word
21 # allow for better ad-hoc multiline editing
22 bindkey '\eq' push-line-or-edit
24 # fixup ctrl-arrow stuff since it's all mucked up since zsh doesn't use readline
25 bindkey "\e[1~" beginning-of-line
26 bindkey "\e[4~" end-of-line
27 bindkey "\e[5~" history-beginning-search-backward
28 bindkey "\e[6~" history-beginning-search-forward
29 bindkey "\e[3~" delete-char
30 bindkey "\e[2~" quoted-insert
31 bindkey "\e[5C" forward-word
32 bindkey "\e[5D" backward-word
33 bindkey "\e[1;5C" forward-word
34 bindkey "\e[1;5D" backward-word
37 bindkey "\e[8~" end-of-line
38 bindkey "\eOc" forward-word
39 bindkey "\eOd" backward-word