[zsh] set vi keybindings when sourced

This commit is contained in:
odrling 2023-12-13 00:10:10 +01:00
parent 4affbe9277
commit 3142ace342
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

3
.zshrc
View file

@ -2,6 +2,9 @@ stty -ixon # Disable ctrl-s and ctrl-q.
# load modules
source ~/.zsh/zsh-completions/zsh-completions.plugin.zsh
# fixes conflict with fzf key-bindings
# Do the initialization when the script is sourced (i.e. Initialize instantly)
ZVM_INIT_MODE=sourcing
[ -z "$NVIM" ] && source ~/.zsh/zsh-vi-mode/zsh-vi-mode.plugin.zsh
if command -v fzf >/dev/null; then