summaryrefslogtreecommitdiff
path: root/user:hugues/KeyBindings.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2012-03-15 16:08:28 +0100
committerHugues Hiegel <hugues@hiegel.fr>2012-03-15 16:08:28 +0100
commit22790301b29a066aea05acb438d7d742a0a907e9 (patch)
tree199f5e323016967086aa06e52166e97bd9589363 /user:hugues/KeyBindings.zsh
parent14d73e9bc8d3880bdecc557e98406c47e241ee98 (diff)
parent60067df38b00e7b63b40c29209a9309d0d0e748d (diff)
Merge branch 'master' of git:zdotdir
Diffstat (limited to 'user:hugues/KeyBindings.zsh')
-rw-r--r--user:hugues/KeyBindings.zsh22
1 files changed, 11 insertions, 11 deletions
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh
index 02dd29a..6a50329 100644
--- a/user:hugues/KeyBindings.zsh
+++ b/user:hugues/KeyBindings.zsh
@@ -33,15 +33,15 @@ bindkey '[3~' kill-region # ESC del
test $TERM = 'rxvt' -o $TERM = 'xterm' -o $TERM = 'aterm' &&
{
- bindkey '[1~' beginning-of-line # home
- bindkey '[4~' end-of-line # end-of-line
- bindkey 'Oc' forward-word # CTRL right
- bindkey 'Od' backward-word # CTRL left
- bindkey '[3$' vi-set-buffer # SHIFT del
- bindkey 'Oa' history-search-backward # CTRL UP
- bindkey 'Ob' history-search-forward # CTRL DOWN
- bindkey 'OH' beginning-of-line # home
- bindkey 'OF' end-of-line # end-of-line
+ bindkey '[1~' beginning-of-line # home
+ bindkey '[4~' end-of-line # end-of-line
+ bindkey 'Oc' forward-word # CTRL right
+ bindkey 'Od' backward-word # CTRL left
+ bindkey '[3$' vi-set-buffer # SHIFT del
+ bindkey 'Oa' history-search-backward # CTRL UP
+ bindkey 'Ob' history-search-forward # CTRL DOWN
+ bindkey 'OH' beginning-of-line # home
+ bindkey 'OF' end-of-line # end-of-line
}
#
@@ -237,8 +237,8 @@ do
bindkey -M $keymap 'q' push-line
bindkey -M $keymap 'Q' push-line
- bindkey -M $keymap -s 'K' 'Q tput clear\n'
- bindkey -M $keymap -s 'B' 'Q tput clear ; tput cup $(tput lines) 0\n'
+ bindkey -M $keymap -s 'K' 'Q for i in {1..$(__get_prompt_lines)} ; tput cuu1\n'
+ bindkey -M $keymap -s 'B' 'Q tput clear ; tput cup $(tput lines) 0\n'
done
# redefines push-line for vicmd