Change Vim command to work on MS-Windows? Use make to check python syntax
:make
contains a list of errors that can be corrected.
The problem is that this script only works on Unix based OS.
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
Can anyone help me get it to work or provide an equivalent for Windows XP?
+2
source to share
1 answer
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 sure check it out before adding this.
+1
source to share