pyflakes.vim : PyFlakes on-the-fly Python code checking
| script karma |
Rating 234/65,
Downloaded by 1753 |
| created by |
| Kevin Watters |
| |
| script type |
| ftplugin |
| |
| description |
pyflakes-vim highlights common Python errors like misspelling a variable name on the fly. It also warns about unused imports, redefined functions, etc.
This plugin is fast enough that it registers itself with vim hooks for leaving insert mode and saving a buffer, so that the warnings are always up to date. See pyflakes.vim if you want to change this behavior.
NOTES:
* requires vim to be built with Python 2.5+ support at the moment (for Windows [g]Vim 7.2 builds with Python 2.5 support, see here: http://symbolsystem.com/vim/)
* an improved pyflakes module is INCLUDED with this plugin, so you don't need to install it separately
* this plugin uses the SpellBad highlight to show errors. if you'd like to change the color or style of this highlight, you can do something like this in your .vimrc:
if has("gui_running")
highlight SpellBad term=underline gui=undercurl guisp=Orange
endif
To stay up on development, you can watch the public repos at
http://github.com/kevinw/pyflakes-vim
http://github.com/kevinw/pyflakes
KNOWN ISSUES
- The highlighting for syntax errors is often way off, and results in no other errors being detected.
- In Python 2.5, typing a with statement before you have from __future__ import with results in a vim error
|
| |
| install details |
1. Make sure your vimrc has "filetype plugin indent on" so that pyflake-vim's ftplugin files are loaded automatically when you open a Python buffer.
2. Drop extracted files in ~/.vim/ftplugin/python.
3. That's it!
See the README for more info.
|
| |
script versions (upload new version)
Click on the package to download.
|