diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:19:16 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:19:16 +0800 |
commit | fa695734493d4068b3c67a8f1895a1a2a322ed61 (patch) | |
tree | 440f7cd6296aa60adbb99bd483d8144c6364b942 /_zsh/60-bindkeys.zsh | |
parent | dd7f2004af233b70c3362ba6f7fd740c6c303cd3 (diff) | |
download | dotfiles-fa695734493d4068b3c67a8f1895a1a2a322ed61.tar.bz2 |
zsh: avoid switching to vi-mode reset bindkey settings
Diffstat (limited to '_zsh/60-bindkeys.zsh')
-rw-r--r-- | _zsh/60-bindkeys.zsh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/_zsh/60-bindkeys.zsh b/_zsh/60-bindkeys.zsh new file mode 100644 index 0000000..80ed079 --- /dev/null +++ b/_zsh/60-bindkeys.zsh @@ -0,0 +1,28 @@ +# +# zsh/bindkeys.zsh +# see zshzle(1) +# +# To see the key combo you want to use just do: +# $ cat > /dev/null +# then press it. +# +# NOTE: +# Switching mode (e.g., `bindkey -v`) will *reset* the following settings! +# + +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 + +# see zshcontrib(1) +autoload -U select-word-style +# bash-style word killing: word characters are alphanumeric characters only +select-word-style bash + +# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |