在 Vim 的 Syntastic 中只为 Python 个文件启用 pylint

Enable only pylint for Python files in Syntastic for Vim

我想使用 "pylint" 检查我在 Vim 中的 Python 代码。为此,我安装了 Syntastic 插件,以及 Ubuntu 的 "pylint" 包。然后我通过在我的 .vimrc.

中编写以下内容来指定我想要使用的检查器
let g:syntastic_py_checkers = ['pylint']

但是如果我写 :SyntasticInfo 我看到两个检查器处于活动状态,"python" 和 "pylint",我只想要 pylint。所以我尝试一起禁用 .py 文件的检查程序。

let g:syntastic_py_checkers = []

但是 :SyntasticInfo 仍然说我有两个激活的跳棋。

如何确保只使用 pylint 检查器?

尝试 syntastic_python_checkers 而不是 syntastic_py_checkers:

let g:syntastic_python_checkers = []

let g:syntastic_python_checkers = ['pylint']