简体   繁体   English

Vim在退出时显示python错误

[英]Vim shows python errors on exit

Every time I try to exit vim, it shows me all of the errors in python. 每次我尝试退出vim时,都会向我显示python中的所有错误。 I do not want this. 我不想这样。 This is a screenshot of what I am talking about. 这是我正在谈论的屏幕截图。 在此处输入图片说明

How can I fix this? 我怎样才能解决这个问题? TIA. TIA。

This seems to be output from vim-flake8 plugin. 这似乎是从vim-flake8插件输出的。 You probably need to uninstall or disable the plugin, or remove autocommand that runs flake8 on saving Python file. 您可能需要卸载或禁用该插件,或者删除在保存Python文件时运行flake8自动命令。

I cannot give more detailed answer — I need to see your .vimrc and perhaps the content of .vim directory. 我无法给出更详细的答案-我需要查看您的.vimrc以及.vim目录的内容。

If you don't want to disable vim-flake8 but only want to get rid of its output on exit — add this to your .vimrc : 如果您不想禁用vim-flake8而只想在退出时摆脱其输出,请将其添加到.vimrc

" automatically close quickfix if it's the only window left"
autocmd WinEnter * if winnr('$') == 1 && &buftype == "quickfix" | quit | endif

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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