/vim-vimlint

lint for vim script

Primary LanguagePython

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