vim-vimlint


Ⅰ. 插件描述

lint for vim script

Ⅱ. 基本信息

创建日期:  2013-07-23
使用用户:  68
Github星:  92
插件作者:  syngan

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Build Status

Install

by Neobundle


NeoBundle 'syngan/vim-vimlint', {
    \ 'depends' : 'ynkdir/vim-vimlparser'}

Usage

call vimlint#vimlint(filename [, param])
call vimlint#vimlint('vimlint.vim')
call vimlint#vimlint(directory)
  • output to the file "hoge"
call vimlint#vimlint('vimlint.vim', {'output' : 'hoge'})

Travis-CI

Create .travis.yml in your plugin's directory.

before_script:
    - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
    - git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser

script:
  - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -v autoload

If you want to ignore EVL103 for any cases and EVL102 for variable _,

before_script:
    - git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
    - git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser

script:
  - sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -e EVL103=1 -e EVL102.l:_=1 -c func_abort=1 autoload

Recommended Plugin

syntastic.vim which is one of the most popular syntax checking plugin for Vim supports vim-vimlint as a syntax checker of vim script.

Since vim-vimlint is written in vim script, vim-vimlint is very slow.
We recommend you to use vim-vimlint with vim-watchdogs which is an async syntax checking plugin based on vim-quickrun and vimproc.

Example

Pull Requests / Issues

Related Plugin

Blog in Japanese

添加新评论