jeffreytse / zsh-vi-mode

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

zsh-vi-mode breaks zsh-syntax-highlighting #228

Closed Jayden876212old closed 1 year ago

Jayden876212old commented 1 year ago

General information

Basic examination

Problem description

Installing and setting zsh-vi-mode in my .zshrc breaks the plugin zsh-syntax-highlighting. Shown below is an example of a terminal command before and after setting zsh-vi-mode in my config. Before: image After: image

Reproduction steps

  1. Download and install zsh-vi-mode and zsh-syntax-highlighting.
  2. Enable them in your .zshrc like this:
    plugins=(
    zsh-vi-mode
    zsh-syntax-highlighting
    )
  3. Try typing a command with multiple arguments.

Expected behavior

The intended behaviour should be that different commands and arguments appear in their respective colours. Like this: image

Ra1ze505 commented 1 year ago

i have this problem too 😢

jeffreytse commented 1 year ago

Hi @tdljayden,

I've fixed the issue you mentioned. Could you try the latest version? If you still got the issue, please let me know. And welcome to star this project for further update in the future. : )

Thanks & Regards

Jayden876212old commented 1 year ago

Can confirm this works now. Thank you.