我处理了许多庞大的遗留文件,以前的开发人员并不总是遵循正确的风格,所以 Syntastic 给了我大量我现在不关心的 linting 错误。我将 Syntastc 置于被动模式并手动检查文件,然后关闭位置列表,效果很好。但是,在我手动检查之后,每次我 :w 时,位置列表都会重新打开并显示以前的错误。我想不出一种方法来防止这种情况发生。有什么建议?
最佳答案
你有 syntastic_mode_map
您的 .vimrc
中设置的选项?这可能会影响 Syntastic 如何进行自动检查:
In passive mode, automatic checks are still done for filetypes in the "active_filetypes" array (and "passive_filetypes" is ignored). In active mode, automatic checks are not done for any filetypes in the "passive_filetypes" array ("active_filetypes" is ignored).
关于vim - 我可以不打开位置列表吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39897977/