summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-02-19 22:02:38 -0800
committerRobby Russell <robby@planetargon.com>2015-02-19 22:02:38 -0800
commit77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707 (patch)
tree69f8ed5e84fc0405f4ee7b4d1730c9528da0804c
parent9bf19603d303b43b85dc000a7dbf7461ebdcb8fd (diff)
parent33900dfd328ea21954cc7772af21e5d44ea71f3f (diff)
downloadzsh-77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707.tar.gz
zsh-77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707.tar.bz2
zsh-77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707.zip
Merge pull request #3603 from alx741/master
Plugins: vi-mode
-rw-r--r--plugins/vi-mode/vi-mode.plugin.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index f2745b409..1de8bf91a 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -34,6 +34,15 @@ bindkey -v
autoload -Uz edit-command-line
bindkey -M vicmd 'v' edit-command-line
+# allow ctrl-p, ctrl-n for navigate history (standard behaviour)
+bindkey '^P' up-history
+bindkey '^N' down-history
+
+# allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour)
+bindkey '^?' backward-delete-char
+bindkey '^h' backward-delete-char
+bindkey '^w' backward-kill-word
+
# if mode indicator wasn't setup by theme, define default
if [[ "$MODE_INDICATOR" == "" ]]; then
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"