A Vim plugin for checking Python code on the fly.
PyFlakes catches common Python errors like mistyping a variable name or accessing a local before it is bound, and also gives warnings for things like unused imports.
pyflakes-vim uses the output from PyFlakes to highlight errors in your code. To locate errors quickly, use quickfix commands like :cc.
Make sure to check vim.org for the latest updates.
Make sure your
filetype on " enables filetype detection filetype plugin on " enables filetype specific plugins
Download the latest release.
If you're using pathogen, unzip the contents of
pyflakes-vim.zipinto its own bundle directory, i.e. into
~/.vim/ftplugin/python(or somewhere similar on your runtime path that will be sourced for Python files).
Running from source
If you're running pyflakes-vim "from source," you'll need the PyFlakes library on your PYTHONPATH somewhere. (It is included in the vim.org zipfile.) I recommend getting my PyFlakes fork, which retains column number information, giving more specific error locations.
git clone git://github.com/kevinw/pyflakes-vim.git cd pyflakes-vim git clone git://github.com/kevinw/pyflakes.git
Set this option to you vimrc file to disable quickfix support:
let g:pyflakes_use_quickfix = 0
The value is set to 1 by default.
- signs support (show warning and error icons to left of the buffer area)
- configuration variables
- parse or intercept useful output from the warnings module
Please see http://www.vim.org/scripts/script.php?script_id=2441 for a history of all changes.