-
Notifications
You must be signed in to change notification settings - Fork 1.1k
VimL: vimlint
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.
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
Vimlint does not call the makeprgBuild()
function, and thus ignores
the usual g:syntastic_vim_vimlint_<option>
variables.