如何禁用python文件的syntastic?


17

我安装了syntastic和python-mode插件,它们都包含语法检查器。我认为python-mode语法检查器对于python文件更通用,因此我只想使用那个(而不是两个)。

如何仅禁用python文件的syntastic?

Answers:


17

Syntastic文档(:help syntastic-pymode)解释了如何做:

[...]为避免两个插件都打开错误窗口,您可以在syntastic中为python设置被动模式(请参见syntastic_mode_map),或在“ python-mode”中禁用lint检查,[...]

因此,您应该能够在文件中禁用类似以下内容的Python文件的自动语法检查功能$MYVIMRC

let g:syntastic_mode_map = { 'passive_filetypes': ['python'] }
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.