From 3f636502682414764bf08292fc4ab6c5516305f6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 7 Mar 2011 14:46:59 +0100 Subject: Add key bindings --- .zsh/zshrc/80_bindkeys | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .zsh/zshrc/80_bindkeys (limited to '.zsh/zshrc/80_bindkeys') diff --git a/.zsh/zshrc/80_bindkeys b/.zsh/zshrc/80_bindkeys new file mode 100644 index 0000000..ba9afb3 --- /dev/null +++ b/.zsh/zshrc/80_bindkeys @@ -0,0 +1,29 @@ +# zshrc/80_bindkeys +# +# defines key bindings (taken from grml zshrc) +# +# Copyright © 2011 Tobias Klauser +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.distanz.ch/dotfiles/zsh.git + +# use emacs keybindings by default (strange, I know) +bindkey -e +# use vi keybindings +# bindkey -v + +# see man zshzle for more information on zsh command line editor + +bindkey '\e[1~' beginning-of-line # home +bindkey '\e[4~' end-of-line # end +bindkey '\e[A' up-line-or-search # cursor up +bindkey '\e[B' down-line-or-search # cursor down + +# if terminal type is set to 'rxvt': +bindkey '\e[7~' beginning-of-line # home +bindkey '\e[8~' end-of-line # end + +# allow for better ad-hoc multiline editing +bindkey '\eq' push-line-or-edit + +# vim:ft=zsh -- cgit v1.2.3-54-g00ecf