3 bindkey
'^N' history-search-forward
4 bindkey
'^P' history-search-backward
5 bindkey
' ' magic-space
# also do history expansion on space
7 bindkey
-s '^[l' '\11ls
' # show dir content
9 bindkey
'^[[Z' reverse-menu-complete
11 bindkey
-M vicmd
'v' edit-command-line
13 # delay after ESC (in 0.01s)
17 bindkey
'^[[7~' beginning-of-line
18 bindkey
'^[[8~' end-of-line
21 bindkey
'^A' beginning-of-line
22 bindkey
'^B' backward-char
23 bindkey
'^E' end-of-line
24 bindkey
'^F' edit-command-line
25 bindkey
'^G' list-expand
26 bindkey
'^O' accept-line-and-down-history
27 bindkey
'^Q' push-input
28 bindkey
'^?' backward-delete-char
29 bindkey
'^H' backward-delete-char
30 bindkey
'^W' backward-kill-word
31 bindkey
'^X=' what-cursor-position
32 bindkey
'^[.' insert-last-word
33 bindkey
'^[?' which-command
34 bindkey
'^[A' accept-and-hold
35 bindkey
'^[a' accept-and-hold
36 bindkey
'^[C' capitalize-word
37 bindkey
'^[c' capitalize-word
38 bindkey
'^[H' run-help
39 bindkey
'^[h' run-help
40 bindkey
'^[T' transpose-words
41 bindkey
'^[t' transpose-words
43 # make search up and down work, so partially type and hit up/down to find relevant stuff
44 bindkey
'^[[A' up-line-or-search
# up arrow
45 bindkey
'^[[B' down-line-or-search
# down arrow
46 bindkey
'^[[5~' up-line-or-history
# PgUp
47 bindkey
'^[[6~' down-line-or-history
# PgDown
49 bindkey
'^[OA' up-line-or-history
50 bindkey
'^[OB' down-line-or-history
51 bindkey
'^[OC' forward-char
52 bindkey
'^[OD' backward-char
53 bindkey
'^[OF' end-of-line
54 bindkey
'^[OH' beginning-of-line
56 bindkey
'\e[c' forward-word
57 bindkey
'\e[d' backward-word
59 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
60 bindkey
'^?' backward-delete-char
61 bindkey
'^[[3~' delete-char
62 bindkey
'^[3;5~' delete-char
63 bindkey
'\e[3~' delete-char