robbyrussell/oh-my-zsh — pull request #1320 by jimhester (2012-09-20 13:00:46+00:00)
Title: Fix to restore bindings after switching to vi-mode

the vi-mode plugin destroys any bindings made before it is sourced due to the
'bindkey -v' call to switch to using vi-mode. This patch saves the bindings
before invoking 'bindkey -v' then rebinds them afterwards, this fixes a number
of outstanding issues due to people using vi-mode and having things in oh-my-zsh
break due to the bindings being destroyed

This fixes #1307 #817 #562 #800 and numerous other issues where the bindings are removed due to using the vi-mode. Using vi-mode as it is also removes a lot of the functionality provided by oh-my-zsh, because all the custom bindings are gone.