Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xi/vim-lint
Lint plugin for vim
https://github.com/xi/vim-lint
Last synced: about 2 months ago
JSON representation
Lint plugin for vim
- Host: GitHub
- URL: https://github.com/xi/vim-lint
- Owner: xi
- Created: 2019-02-23T16:06:37.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T11:29:18.000Z (11 months ago)
- Last Synced: 2024-03-02T12:32:27.544Z (11 months ago)
- Language: Vim Script
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-lint
`vim-lint` is a vim plugin that runs the currently open file through a
linter.It is much simpler than [syntastic][1]. In fact, the implementation is
basically a simplified version of [vim-flake8][2]. 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).[1]: https://github.com/vim-syntastic/syntastic/
[2]: https://github.com/nvie/vim-flake8/## Usage
Press `` to run a linter on the current file.
For most file types you will probably have to install and configure a linter
first:```viml
" 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:```viml
autocmd BufWritePost * call Lint()
```