aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh/bindkeys.zsh
blob: 781d26088b8f8e5df2fc1946fc8d49301a655d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# zsh/bindkeys.zsh
#
# To see the key combo you want to use just do:
# cat > /dev/null
# And press it
#

bindkey "^K"    kill-whole-line                      # ctrl-k
bindkey "^R"    history-incremental-search-backward  # ctrl-r
bindkey "^A"    beginning-of-line                    # ctrl-a
bindkey "^E"    end-of-line                          # ctrl-e
bindkey "[B"    history-search-forward               # down arrow
bindkey "[A"    history-search-backward              # up arrow
bindkey "^D"    delete-char                          # ctrl-d
bindkey "^F"    forward-char                         # ctrl-f
bindkey "^B"    backward-char                        # ctrl-b
bindkey '^P'    up-history
bindkey '^N'    down-history
bindkey '^W'    backward-kill-word

## vi mode
bindkey -v

# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #