Search code examples
pythonvimpyflakes

How do I disable pyflakes-vim for a particular file?


I have some autogenerated python files that are extremely large (long mathematical equations). Vim slows to a crawl when I open them for editing because I have pyflakes-vim installed. I'd like to be able to disable pyflakes-vim only when I open these long files. Is there a simple way to do this, either before opening the file or even after? I do not want to turn off pyflakes-vim for all python files, just a case-by-case basis.


Solution

  • I've found another solution which is handy: https://github.com/kevinw/pyflakes-vim/pull/47

    This fork of pyflakes-vim, which has not been merged in yet, allows you to toggle pyflakes on or off.