jeffreytse / zsh-vi-mode

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

Conflict with fzf completion #277

Closed bm-mit closed 7 months ago

bm-mit commented 7 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 7 months ago

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