Install vim 8 with python support on mac | Wenhan Code life

Install vim 8 with python support on mac

Today I configure my development envirment for my mac pro.
And I find it is much easier to install VIM 8 with python support use brew.
(much more easier than cent 7)

If you have brew, you just need to run

1
brew install --with-python vim

If you want both python3 and python2 support, just run this

1
brew install --with-python --with-python3 vim

Update: you may need to use below command on some latest OS for python2

1
brew install --with-python@2

may be you need to remove the old vim bin file,

1
rm -f /usr/local/bin/vim

and re-link the vim

1
brew link --overwrite vim

done! enjoy your vim~