]> git.donarmstrong.com Git - zsh.git/commitdiff
add xterm keybindings
authorDon Armstrong <don@donarmstrong.com>
Mon, 16 Sep 2013 18:49:33 +0000 (11:49 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 16 Sep 2013 18:49:33 +0000 (11:49 -0700)
.zsh/zshrc/79_bindkeys

index 67e34aae06247450b1ad86ad216b2694550be138..803db91df1532a420af328155d9415c1c8312173 100644 (file)
@@ -21,4 +21,21 @@ 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
+
 # vim:ft=zsh