vim-eslint-compiler


Ⅰ. 插件描述

Vim compiler plugin for ESLint

Ⅱ. 基本信息

创建日期:  2014-05-12
使用用户:  1
Github星:  8
插件作者:  Márton Salomváry

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## Vim ESLint Compiler

Installation

Install ESLint (0.5.1 or later)

If you are using pathogen:

cd ~/.vim/bundle
git clone https://github.com/salomvary/vim-eslint-compiler.git

If not, simply save compiler/eslint.vim to your
.vim/compiler folder.

Usage

The primary purpose of this script is to validate multiple files or folders
recursively and help fixing issues from the quickfix window.

:compiler eslint

"Validate current folder recursively:
:make .

"Validate current file:
:make %

"Validate a folder:
:make app

"Show reults in quickfix window
:copen

Further information:

:help compiler
:help make
:help quickfix

Note: if you rather need inline ESLint feedback while editing or never
want to check multiple files or whole projects a better option is
Syntastic which has built-in ESLint
support.

添加新评论