zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

zvm plugin cannot work with zsh git plugin, and cannot source the .zshrc file.

Open meicale opened this issue 3 years ago • 2 comments

General information

Basic examination

zvm plugin cannot work with zsh git plugin, and cannot source the .zshrc file.

  • [x] I have read through the README page
  • [x] I have the latest version of zsh-vi-mode
  • [ ] I have tested with another terminal program

Problem description

Everytime I source the .zshrc in my home dir, this ZVM plugin stop working properly and the cursor begin to flash. If I close the terminal and restart, it works fine. I cannot use both git and ZVM plugins the same time. It just doesn't work and the cursor flashing all the time and I can not change to other mode.

Reproduction steps

  1. install zsh and oh-my-zsh
  2. install plugin zvm
  3. install plugin git
  4. source the .zshrc in home dir.

Expected behavior

  1. The cursor is a thin block
  2. Can change to normal or visual mode using esc or v

The config related in my .zshrc is like this.

ZVM_INIT_MODE=sourcing ZVM_LAZY_KEYBINDINGS=false ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT

plugins=() plugins+=(zsh-vi-mode) plugins+=(z) plugins+=(extract) plugins+=(zsh-autosuggestions) plugins+=(zsh-syntax-highlighting)

source $ZSH/oh-my-zsh.sh

meicale avatar Dec 19 '21 09:12 meicale

I had the same issue and solved it by loading zsh-vi-mode before the conflicting plugins

DiogoDoreto avatar Dec 22 '21 11:12 DiogoDoreto

Hi @meicale

Thanks for your issue, and sorry for the late reply, currently I'm quite busy, I will research your issue when I am possible. Hope you have a good day! : )

Thanks and Regards

jeffreytse avatar Jan 16 '22 02:01 jeffreytse