77140a2ea7f8fbf6d5618546d7e7dc8fd03eb707
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #3603 from alx741/master
Plugins: vi-mode
Diff
1diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
2index f2745b409097c6cdf6c5a02069728e8b18f2f632..1de8bf91a9b025a39beed35f3d296826e8d541f5 100644
3--- a/plugins/vi-mode/vi-mode.plugin.zsh
4+++ b/plugins/vi-mode/vi-mode.plugin.zsh
5@@ -34,6 +34,15 @@ bindkey -v
6 autoload -Uz edit-command-line
7 bindkey -M vicmd 'v' edit-command-line
8
9+# allow ctrl-p, ctrl-n for navigate history (standard behaviour)
10+bindkey '^P' up-history
11+bindkey '^N' down-history
12+
13+# allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour)
14+bindkey '^?' backward-delete-char
15+bindkey '^h' backward-delete-char
16+bindkey '^w' backward-kill-word
17+
18 # if mode indicator wasn't setup by theme, define default
19 if [[ "$MODE_INDICATOR" == "" ]]; then
20 MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"