gpt4 book ai didi

python - 如何在 Git Bash 的 Vim 中添加 Python 支持?

转载 作者:太空狗 更新时间:2023-10-29 19:29:13 25 4
gpt4 key购买 nike

我想在 Vim 中添加 Python 支持 Git Bash ,我该怎么做?

运行时出现错误:

:echo has('python')

最佳答案

TL;DR: Install MSYS2 instead, a "superset" of git bash, that also comes with a package manager.


这张票出现了in the git-for-windows issue tracker ,并因以下原因关闭:

This function is not required for Git for Windows to work. In fact, Python is not required for Git for Windows to work, therefore we do not ship it to the end user.

The purpose of Git for Windows is really to bring Git to Windows.

While that implies that we have to ship quite a few Unix-like tools, it does not mean that we will include such tools unless they are needed for Git's own operations, or at least for historical reasons (needs of active contributors are sometimes a factor in deciding whether to include a tool or not).

Having said that, what you really are looking for is MSYS2. Git for Windows leverages MSYS2 and ships with a subset of its files. MSYS2 even sports a package management system called "pacman" to install more tools (including Git...), so why don't you give it a whirl?

我想您可以继续重新安装或重新编译支持 Python 的 vim,建议的做法似乎更好。

关于python - 如何在 Git Bash 的 Vim 中添加 Python 支持?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33519853/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com