Ⅰ. 插件描述
An excellent Vim's syntax highlighting file for Vim scriptⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-jp/syntax-vim-ex'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-jp/syntax-vim-ex'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-jp/syntax-vim-ex'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-jp/syntax-vim-ex
Ⅳ. 文档说明
syntax-vim-ex
An excellent Vim's syntax highlighting file for Vim script.
Difference between original
- The syntax-vim-ex has been generated by parse the C source code of Vim. So
keyword extraction is accurate. - Omitted keyword extraction algorithm of Ex command is perfect because it is
same and the C source code of Vim. - It will immediately follow the Vim updates.
- Generator source code is all open sourced. (See generator branch)
Requirement
Vim 7.4.1486 or later
How to Install
$ cd ~/.vim
$ mkdir -p pack/my/opt
$ cd pack/my/opt
$ git clone --single-branch --depth 1 https://github.com/vim-jp/syntax-vim-ex.gitAdd following line to your .vimrc.
packadd! syntax-vim-exRemarks:
- In the case of Windows should read the
~/.vimto%HOMEDRIVE%%HOMEPATH%\vimfiles. And mkdir-poption is not required. - Directory name
mycan be changed to any name. - If you want to configure the package under
~/.vimdirectory as in this
example the setting of option'packpath'is not required. - If you are calling
:packloadallexplicitly in your .vimrc,packadd
should be added before it.
How to Update
$ cd ~/.vim/pack/my/opt/syntax-vim-ex
$ git pullLicence
Follow the Vim license
Authors
- Hirohito Higashi (h_east)
- vim-jp
- Charles E. Campbell (author of original syntax/vim.vim)