Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

syntax

vim

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.

like image 299
Kilon Avatar asked Sep 23 '10 12:09

Kilon


1 Answers

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

like image 110
Attila O. Avatar answered Oct 15 '22 12:10

Attila O.