What Vim script you recommend for checking Python syntax on the fly?


Question

I have visited Vim website , script section and found several synthax checkers for python. But which one to choose ? I would prefer something that supports python 3 as well, even though I code in python 2.6 currently.

Do all these checkers need a module like pychecker and pyflakes ?

I could install the most popular from scripts database but I thought to get some recommendations here first from what you consider the best and why. The script will have to work MACOS, windows and ubuntu, with MACOS being my highest priority.

In case you are wondering I am looking for syntax checking like the one used by PyDev in Eclipse IDE which underlines with a red wavy line all erros as you type.

1
12
5/9/2013 4:45:38 AM

Accepted Answer

I use the PyFlakes vim script, and I'm pretty satisfied with it. Also, if you'd like PEP8 checking, try this script.

7
10/10/2010 4:27:40 PM

These two websites really boosted my Vim productivity with all languages:

http://nvie.com/posts/how-i-boosted-my-vim/

http://stevelosh.com/blog/2010/09/coming-home-to-vim/


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon