zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

Highlighting missing from vi / nano etc #886

Closed marcpaskell closed 1 year ago

marcpaskell commented 2 years ago

Hi - recently moved over to zsh, installed ohmyzsh and wanted to add the highlighting plugin.

Followed the install instructions and the plugin seems to be installed, recognised and listed in the omz plugin list. Highlighting works on the prompt but not inside any editors i have (vi, nano etc).

Screenshot 2022-07-14 at 16 48 41

Any suggestions at to where to look would be great.

Thanks

danielshahaf commented 2 years ago

z-sy-h only highlights input at zsh's prompt. It does not interact with your $EDITOR in any way. You'll want to look in your $EDITOR's documentation for how to enable syntax highlighting. Good luck!