zsh-vi-mode: keybindings seem to conflict with fzf's
hi, thanks for creating this wonderful plugin. I am having trouble getting it working with fzf. My .zshrc
file looks like this:
...
# zsh vi mode
source $HOME/.zsh-vi-mode/zsh-vi-mode.plugin.zsh
# fzf
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh
if I comment out ZVM, fzf will work, and if I comment out fzf, ZVM will work. I also tried switching order and same situation. Any ideas how to get these two plugins working in harmony? Thanks.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (7 by maintainers)
Commits related to this issue
- fix keybindings conflict with fzf's https://github.com/jeffreytse/zsh-vi-mode/issues/24 — committed to Emin017/dotfiles by Emin017 8 months ago
- fix keymap conflict of zsh-vi-mode and fzf jeffreytse/zsh-vi-mode#24 — committed to Kleinjohann/dotfiles by Kleinjohann 5 months ago
Hi @sktrinh12
š Iām glad to hear that you have settled down this issue. And Welcome to star this project for further updates in the future.
For better code style, I think you can use below one:
Alternatively, you can āgit cloneā this repository to any directory and run install script.
After installation, just use below one:
Thanks and regards
thanks for the suggestion! i starred your repo!
Hi @jeffreytse: the plugin is working well for me, I havenāt had issues since implementing the fix.
Thanks for the fast response @jeffreytse! From what I can tell, placing
ZVM_INIT_MODE=sourcing
before initializing oh-my-zsh and plugins mostly fixes this problem. It is probably with indicating somewhere in your docs that this only fixes the problem ifzsh-vi-mode
comes afterfzf
in the list of oh-my-zsh plugins (I tried it the other way first, and that did not resolve the issue with fzfās bindings, only my custom bindingsāwhere were defined after sourcing oh-my-zsh).Hi @haberdashPI
Now this plugin has provided an option called
ZVM_INIT_MODE
to configure the initialization mode (#113), you can use this snippetZVM_INIT_MODE=sourcing
for doing the initialization inistantly when this plugin is sourcing.Thanks and regards