将Vim命令更改为在MSWindows中工作?使用make检查python语法

2024-09-25 08:40:27 发布

您现在位置:Python中文网/ 问答频道 /正文

:make提供了一个错误列表,可以导航这些错误以进行修复。在

问题是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

有谁能帮我使它正常工作,或者为WindowsXP提供同等的功能?在


Tags: inpyonly列表make错误sysunix
1条回答
网友
1楼 · 发布于 2024-09-25 08:40:27

要使第一部分正常工作,必须首先将python添加到PATH变量中。在

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

在python.exe应放在:

c:\PythonXX\bin

但我不太确定,在添加之前先检查一下。在

相关问题 更多 >