summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2006-06-15 18:34:10 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:08 +0100
commit90190ba76fb97ed5e79b102e55b5300f5dbc26fc (patch)
tree73324a9500f641090a0c8aff2d4555e029a48a02
parent2455ce7a07fa4dcc93945afbf75af4529863eda6 (diff)
Keybindings : problèmes de cohérence avec les subshells (sudo, screen, ...)
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@249 a0e5b806-a6f9-0310-978d-cbce73f8a913
-rw-r--r--40_KeyBindings.zsh20
1 files changed, 20 insertions, 0 deletions
diff --git a/40_KeyBindings.zsh b/40_KeyBindings.zsh
index 1b112d5..1f6cd14 100644
--- a/40_KeyBindings.zsh
+++ b/40_KeyBindings.zsh
@@ -5,6 +5,9 @@
# Lancez un chtit bindkey dans votre zsh pour voir...
#
+bindkey "" backward-delete-word
+bindkey "" backward-delete-char
+
bindkey "\e[3~" delete-char # delete
bindkey "\e[2~" overwrite-mode # insert
bindkey "\e[A" up-line-or-history # up
@@ -35,6 +38,17 @@ test $TERM = "xterm" &&
bindkey "\eOH" beginning-of-line # home
bindkey "\eOF" end-of-line # end-of-line
}
+
+bindkey "[8~" end-of-line
+bindkey "[7~" beginning-of-line
+bindkey "[6~" down-line-or-history
+bindkey "[5~" up-line-or-history
+bindkey "[3~" delete-char
+bindkey "[2~" undefined-key
+bindkey "[3~" delete-word
+bindkey "" backward-delete-char
+bindkey "" backward-delete-word
+
#bindkey "\C-t" gosmacs-transpose-chars # J, ca c'est un truc pour toi
# ne pas oublier de s'en servir :
# vi-match-bracket est sur ^X^B par defaut
@@ -96,3 +110,9 @@ bindkey "^[~" _bash_complete-word
bindkey "^\\\\"-"~" self-insert
bindkey "^?" vi-backward-delete-char
bindkey "\M-^@"-"\M-^?" self-insert
+bindkey "^D" delete-char
+bindkey "^H" vi-backward-delete-char
+bindkey "^[[3~" delete-char
+bindkey "^[d" delete-word
+bindkey "^[^?" backward-delete-word
+bindkey "^?" vi-backward-delete-char