4126760bca
The advantage to this is that no 3rd party modules are required. People new to Python probably won't have flake8/pyflakes/pylint installed. This will get them basic syntax checking (no linting) out of the box.
28 lines
863 B
VimL
28 lines
863 B
VimL
"============================================================================
|
|
"File: python.vim
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
"
|
|
"Authors: Martin Grenfell <martin.grenfell@gmail.com>
|
|
" kstep <me@kstep.me>
|
|
" Parantapa Bhattacharya <parantapa@gmail.com>
|
|
"
|
|
"
|
|
" For forcing the use of flake8, pyflakes, or pylint set
|
|
"
|
|
" let g:syntastic_python_checker = 'pyflakes'
|
|
"
|
|
" in your .vimrc. Default is flake8.
|
|
"============================================================================
|
|
|
|
if exists("loaded_python_syntax_checker")
|
|
finish
|
|
endif
|
|
let loaded_python_syntax_checker = 1
|
|
|
|
if !exists('g:syntastic_python_checker_args')
|
|
let g:syntastic_python_checker_args = ''
|
|
endif
|
|
|
|
let s:supported_checkers = ["flake8", "pyflakes", "pylint", "python"]
|
|
call SyntasticLoadChecker(s:supported_checkers, 'python')
|