Ⅰ. 插件描述
A Vim syntax definition for Zinit commands in any ft=zsh fileⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zplugin/zplugin-vim-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zplugin/zplugin-vim-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zplugin/zplugin-vim-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zplugin/zplugin-vim-syntax
Ⅳ. 文档说明
# zinit-vim-syntax
A Vim syntax definition for Zinit commands in any file of type zsh.
Installation
Load as a Vim plugin. E.g. when using vim-plug, add to ~/.vimrc:
Plug 'zinit-zsh/zinit-vim-syntax'and then issue the :PlugInstall command.
Manual Installation
To install the syntax copy the file syntax/after/zsh.vim under the path~/.vim/syntax/after.
Examples
The default theme:

The theme flrnprz/plastic.vim:

The theme slate:

The theme murphy:

The theme lucasprag/simpleblack:

TODO
- Highlight user and plugin with different colors.
- Make the
wait's distinctness controlled. - Make the syntax matching commands fully contained.
- Fix bugs.
- Other?