vim-antlr


Ⅰ. 插件描述

Syntax highlighter for ANTLR files in vim

Ⅱ. 基本信息

创建日期:  2011-02-28
使用用户:  25
Github星:  14
插件作者:  Dylon Edwards

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'dylon/vim-antlr-are-made-of'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'dylon/vim-antlr-are-made-of'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'dylon/vim-antlr-are-made-of'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/dylon/vim-antlr

Ⅳ. 文档说明

# vim-antlr

Vim, syntax highlighting for ANTLR versions 3 and 4.

Installation

Pathogen

cd ~/.vim/bundle && \
git clone https://github.com/dylon/vim-antlr.git

See pathogen.vim for more info.

Manual

Download and install the syntax files from the command line:

mkdir -p "$HOME/.vim/syntax"
curl -LSso "$HOME/.vim/syntax/antlr3.vim" "https://raw.githubusercontent.com/dylon/vim-antlr/master/syntax/antlr3.vim"
curl -LSso "$HOME/.vim/syntax/antlr4.vim" "https://raw.githubusercontent.com/dylon/vim-antlr/master/syntax/antlr4.vim"

Then add the following to your .vimrc:

au BufRead,BufNewFile *.g set filetype=antlr3
au BufRead,BufNewFile *.g4 set filetype=antlr4

添加新评论