X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Fzshrc%2F79_bindkeys;h=e3d3b3a7316ccc29ac9a764b39456b964b381d55;hb=93e7b705f67081ae660ae3a5b86133da6a0c233c;hp=5747a2156687612915c0fc2d32af04a31bd908e3;hpb=1918b63567401917a02af7deb8f999432ea605a7;p=zsh.git diff --git a/.zsh/zshrc/79_bindkeys b/.zsh/zshrc/79_bindkeys index 5747a21..e3d3b3a 100644 --- a/.zsh/zshrc/79_bindkeys +++ b/.zsh/zshrc/79_bindkeys @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # zshrc/80_bindkeys # # Defines key bindings @@ -20,4 +21,24 @@ bindkey '\e=' copy-prev-shell-word # allow for better ad-hoc multiline editing bindkey '\eq' push-line-or-edit +# fixup ctrl-arrow stuff since it's all mucked up since zsh doesn't use readline +bindkey "\e[1~" beginning-of-line +bindkey "\e[4~" end-of-line +bindkey "\e[5~" history-beginning-search-backward +bindkey "\e[6~" history-beginning-search-forward +bindkey "\e[3~" delete-char +bindkey "\e[2~" quoted-insert +bindkey "\e[5C" forward-word +bindkey "\e[5D" backward-word +bindkey "\e[1;5C" forward-word +bindkey "\e[1;5D" backward-word + +# for rxvt +bindkey "\e[8~" end-of-line +bindkey "\eOc" forward-word +bindkey "\eOd" backward-word +# fix home/end keys (for mosh) +bindkey "\e[7~" beginning-of-line +bindkey "\e[8~" end-of-line + # vim:ft=zsh