views:

100

answers:

1

:make provides a list of errors which can be navigated through in order to fix.

The problem is that this script only works in Unix based OSes.

autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\"
autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m

Anyone could help me make it work or provide the equivalent for Windows XP?

+1  A: 

For the first part to work, you must first add python to your PATH variable.

http://vlaurie.com/computers2/Articles/environment.htm

python.exe should be placed in:

c:\PythonXX\bin

But I'm not that sure, check it out before adding that one.

Santi