Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

VimL: vimlint

LCD 47 edited this page Jun 12, 2016 · 8 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: LCD 47 [email protected]

Vimlint is a lint checker for VimL written in pure VimL, based on Yukihiro Nakadaira's vimlparser. See the project's page for details.

To install it you have to install both vimlint and vimlparser.

Checker Options

The errors reported by Vimlint are configurable by setting the variable g:syntastic_vimlint_options to a dictionary of error codes and level values, with the same syntax as Vimlint's g:vimlint#config. See :help g:vimlint#config and :help vimlint-errorcode for more details.

For example, to ignore unused argument warnings:

let g:syntastic_vimlint_options = { 'EVL103': 1 }

Please note however that certain error messages can't be turned off this way. This is a misfeature of Vimlint, rather than a limitation of syntastic. You can still ignore these messages using the standard mechanism of g:syntastic_vim_vimlint_quiet_messages:

let g:syntastic_vim_vimlint_quiet_messages = { 'regex': '\v\[EVL%(105|205)\]' }

At the time of this writing the messages that can't be turned off from g:syntastic_vimlint_options are:

  • EVL105 - global variable defined without g:
  • EVL202 - missing call
  • EVL203 - parse error in command
  • EVL205 - missing scriptencoding
  • EVL901 - unknown type
  • EVL902 - assert error

Note

Vimlint does not call the makeprgBuild() function, and thus ignores the usual g:syntastic_vim_vimlint_<option> variables.

Clone this wiki locally