jeffreytse / zsh-vi-mode

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

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

Open meicale opened 2 years ago

meicale commented 2 years ago

General information

Basic examination

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

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

DiogoDoreto commented 2 years ago

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

jeffreytse commented 2 years ago

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