]>
git.rmz.io Git - dotfiles.git/blob - zsh/lib/00-key-bindings.zsh
7fd00e545280dd461cf3b28db7b92a3c3d51a4cf
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
'^A' beginning
-of-line
18 bindkey
'^B' backward
-char
19 bindkey
'^E' end
-of-line
20 bindkey
'^F' edit
-command-line
21 bindkey
'^G' list
-expand
22 bindkey
'^O' accept
-line-and-down-history
23 bindkey
'^Q' push
-input
24 bindkey
'^?' backward
-delete-char
25 bindkey
'^H' backward
-delete-char
26 bindkey
'^W' backward
-kill-word
27 bindkey
'^X=' what
-cursor-position
28 bindkey
'^[.' insert
-last-word
29 bindkey
'^[?' which-command
30 bindkey
'^[A' accept
-and-hold
31 bindkey
'^[a' accept
-and-hold
32 bindkey
'^[C' capitalize
-word
33 bindkey
'^[c' capitalize
-word
34 bindkey
'^[H' run
-help
35 bindkey
'^[h' run
-help
36 bindkey
'^[T' transpose
-words
37 bindkey
'^[t' transpose
-words
39 # make search up and down work, so partially type and hit up/down to find relevant stuff
40 bindkey
'^[[A' up
-line-or-search # up arrow
41 bindkey
'^[[B' down
-line-or-search # down arrow
42 bindkey
'^[[5~' up
-line-or-history # PgUp
43 bindkey
'^[[6~' down
-line-or-history # PgDown
45 bindkey
'^[OA' up
-line-or-history
46 bindkey
'^[OB' down
-line-or-history
47 bindkey
'^[OC' forward
-char
48 bindkey
'^[OD' backward
-char
49 bindkey
'^[OF' end
-of-line
50 bindkey
'^[OH' beginning
-of-line
52 bindkey
'\e[c' forward
-word
53 bindkey
'\e[d' backward
-word
55 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
56 bindkey
'^?' backward
-delete-char
57 bindkey
'^[[3~' delete
-char
58 bindkey
'^[3;5~' delete
-char
59 bindkey
'\e[3~' delete
-char