Add an option called ZVM_INIT_MODE for people to configure the initialization mode. It allows users to decide the order of keybindings, since most of plugins do their keybindings when they are sourcing.
# Doing initialization at the first new command line starting (Default)
ZVM_INIT_MODE=precmd
# Doing initialization at the plugin sourcing (Instantly)
ZVM_INIT_MODE=sourcing
# Here we source the plugin
source zsh-vi-mode.zsh
Add an option called
ZVM_INIT_MODE
for people to configure the initialization mode. It allows users to decide the order of keybindings, since most of plugins do their keybindings when they are sourcing.