Ⅰ. 插件描述
vim syntax highlight for PEG.js grammarsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'alunny/pegjs-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'alunny/pegjs-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'alunny/pegjs-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/alunny/pegjs-vim
Ⅳ. 文档说明
# pegjs.vim
Syntax highlighting for PEGjs files in VIM.
Enough to be useful - feedback/patches welcome.
Usage
$ vim myAwesomeGrammar.pegjs
:syntax on
:setf pegjs
Installation
The easiest way is to install using pathogen.vim:
cd ~/.vim/bundle
git clone https://github.com/alunny/pegjs-vim
If you do not want to use pathogen. You can always install pegjs-vim in the
normal manner by copying each directory to your ~/.vim directory. Make sure
not to overwrite any existing directory of the same name and instead copy only
the contents of the source directory to the directory of the same name in your~/.vim directory.
Important
License
MIT