jeffreytse / zsh-vi-mode

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

Vi plugin interferes with ^o (ctrl-o) as a shortcut for other plugins #263

Open apotenza92 opened 10 months ago

apotenza92 commented 10 months ago

General information

Basic examination

Problem description

I use the ^o (ctrl-o) shortcut to activate a script for lf file manager What's strange is the shortcut works if I have activated lfcd manually within a terminal. If not, I simply see Screenshot 2024-01-28 at 8 28 07 pm in my terminal when I click ctrl-o.

If I disable the vi plugin the shortcut works on terminal startup perfectly.

Reproduction steps

  1. Install lf, download and source the lfcd-script.
  2. Run lfcd to ensure it works and test the ctrl-o shortcut.
  3. Ensure vi mode plugin is also activated.
  4. Open a new terminal and immediately press ctrl-o.
  5. Observe ^O error.
  6. Disable vi mode plugin.
  7. Open a new terminal and press ctrl-o.
  8. Observe no issue and shortcut functions.

Expected behavior

vi plugin not to interfere with shortcuts from other plugins. I've tried adjusting the order that things are loaded in my .zshrc and it doesn't make a difference unfortunately.

HirschBerge commented 5 months ago

This also interferes with fzf and fzf-git plugin bindings as well