1 # TODO: Explain what some of this does..
4 bindkey
-s '\el' "ls\n"
5 bindkey
'\ew' kill-region
6 bindkey
'^r' history-incremental-search-backward
7 bindkey
"^[[5~" up-line-or-history
8 bindkey
"^[[6~" down-line-or-history
10 # make search up and down work, so partially type and hit up/down to find relevant stuff
11 bindkey
'^[[A' up-line-or-search
# up arrow
12 bindkey
'^[[B' down-line-or-search
# down arrow
14 bindkey
"^[[H" beginning-of-line
15 bindkey
"^[[1~" beginning-of-line
16 bindkey
"^[OH" beginning-of-line
17 bindkey
"\e[7~" beginning-of-line
18 bindkey
"^[[F" end-of-line
19 bindkey
"^[[4~" end-of-line
20 bindkey
"\e[8~" end-of-line
21 bindkey
"^[OF" end-of-line
22 bindkey
' ' magic-space
# also do history expansion on space
24 bindkey
"^[[1;5C" forward-word
25 bindkey
"^[[1;5D" backward-word
27 bindkey
'^[[Z' reverse-menu-complete
29 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
30 bindkey
'^?' backward-delete-char
31 bindkey
"^[[3~" delete-char
32 bindkey
"^[3;5~" delete-char
33 bindkey
"\e[3~" delete-char