【问题标题】:Change Vim command to work in MS-Windows? Use make to check python syntax更改 Vim 命令以在 MS-Windows 中工作?使用 make 检查 python 语法
【发布时间】:2009-09-08 13:31:54
【问题描述】:

: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

任何人都可以帮助我使它工作或为 Windows XP 提供等效功能?

【问题讨论】:

    标签: python windows vim windows-xp


    【解决方案1】:

    要使第一部分起作用,您必须首先将 python 添加到您的 PATH 变量中。

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

    python.exe 应该放在:

    c:\PythonXX\bin
    

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

    【讨论】:

      猜你喜欢
      • 2011-12-17
      • 1970-01-01
      • 2021-07-20
      • 1970-01-01
      • 1970-01-01
      • 2021-11-23
      • 1970-01-01
      • 2019-05-07
      • 2018-10-18
      相关资源
      最近更新 更多