1

我在 Windows 上使用 vim,来自 cygwin。

我将 PYthon 更改为 Windows Python,即我的 .bashrc 包括:

  PATH=/cygdrive/c/Python27:$PATH

这会导致 syntastic 插件失败,因为 Windows Python 不处理 /cygdrive/c/ 前缀而不是 C:/ :

syntastic: error: checker output:
C:\Python27\python.exe: can't open file '/cygdrive/c/[path to my .vim folder]/.vim/bundle/syntastic/syntax_checkers/python/compile.py': [Errno 2] No such file or directory

据我了解,解决方案是在 cygwin 终端调用 Windows Python 时以某种方式更改以 /cygwin/c/ 开头的文件路径。

怎么可能做到这一点?

4

0 回答 0