vim-lint

Lint plugin for vim
git clone https://git.ce9e.org/vim-lint.git

NameSize
README.md954B
autoload/lint.vim1016B
ftplugin/c_10_clang.vim137B
ftplugin/c_20_gcc.vim133B
ftplugin/css_10_stylelint.vim152B
ftplugin/html_10_htmlhint.vim136B
ftplugin/javascript_10_eslint.vim132B
ftplugin/javascript_20_jshint.vim140B
ftplugin/php_10_php.vim128B
ftplugin/python_10_ruff.vim284B
ftplugin/python_20_flake8.vim258B
ftplugin/scss_10_stylelint.vim20B
ftplugin/sh_10_shellcheck.vim139B
plugin/lint.vim80B

vim-lint

vim-lint is a vim plugin that runs the currently open file through a linter.

It is much simpler than syntastic. In fact, the implementation is basically a simplified version of vim-flake8. It basically has no options. However, much like syntastic, you can configure vim-lint to use many different linters (but only one per file type).

Usage

Press <F7> to run a linter on the current file.

For most file types you will probably have to install and configure a linter first:

" ftplugin/python_lint.vim
if executable('flake8')
    let b:lint_prg = 'flake8 --ignore=W191,W503'
    let b:lint_format = '%f:%l:%c: %m'
endif

For details about g:line_format, see :help errorformat.

To run the linter automatically on save, add the following line to your .vimrc file:

autocmd BufWritePost * call Lint()