Skip to content

Commit

Permalink
Merge pull request #1320 from jimhester/vi-mode-patch
Browse files Browse the repository at this point in the history
Fix to restore bindings after switching to vi-mode
  • Loading branch information
robbyrussell committed Sep 23, 2012
2 parents 523b26c + b609aa0 commit 8247a40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/vi-mode/vi-mode.plugin.zsh
Expand Up @@ -5,7 +5,12 @@ function zle-line-init zle-keymap-select {
zle -N zle-line-init
zle -N zle-keymap-select

#changing mode clobbers the keybinds, so store the keybinds before and execute
#them after
binds=`bindkey -L`
bindkey -v
for bind in ${(@f)binds}; do eval $bind; done
unset binds

# if mode indicator wasn't setup by theme, define default
if [[ "$MODE_INDICATOR" == "" ]]; then
Expand Down

1 comment on commit 8247a40

@marcparadise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this has broken history-search (Esc-/). Looking into it a bit more.

Please sign in to comment.