简体   繁体   中英

Enable only pylint for Python files in Syntastic for Vim

I want to use "pylint" for checking my Python code in Vim. To do this, I install the Syntastic plugin, along with the "pylint" package for Ubuntu. Then I specify the checker I want to use by writing the following in my .vimrc.

let g:syntastic_py_checkers = ['pylint']

But if I write :SyntasticInfo I see that two checkers are active, "python" and "pylint", I only want pylint. So I try to disable the checkers for .py files all together.

let g:syntastic_py_checkers = []

But :SyntasticInfo still says I have two checkers active.

How do I ensure that only the pylint checker is being used?

Try syntastic_python_checkers instead of syntastic_py_checkers :

let g:syntastic_python_checkers = []

or

let g:syntastic_python_checkers = ['pylint']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM