Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add Python support in Vim in Git Bash?

I want to add Python support in Vim in Git Bash, how do I do this?

I get false when running:

:echo has('python')
like image 797
gummiost Avatar asked Nov 04 '15 10:11

gummiost


1 Answers

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


This ticket shows up in the git-for-windows issue tracker, and was closed with the following reason:

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?

I guess you could go ahead re-install or re-compile vim with Python support, a better course of action seems to be the one suggested.

like image 66
François Leblanc Avatar answered Oct 09 '22 13:10

François Leblanc