jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
2.93k stars 102 forks source link

Conflict with fzf completion #277

Closed bm-mit closed 2 months ago

bm-mit commented 2 months ago

General information

Basic examination

Problem description

fzf supports the autocomplete feature when pressing Tab after on the command line. If this plugin is activated, pressing Tab after doesn't open fzf window. Instead, it expands all items in the current directory.

With vi mode activate when pressing cd **<TAB> image Without vi mode, fzf works normally image

Reproduction steps

  1. Install fzf with the default configuration. Add eval $(fzf --zsh) to .zshrc.
  2. Reload terminal
  3. Type cd **
  4. Press TAB

Expected behavior

bm-mit commented 2 months ago

Fixed it by placing ZVM_INIT_MODE=sourcing at top of .zshrc