- Download vim x64 from: https://github.com/vim/vim-win32-installer/releases
- Check versions of Python with
:version
inside of vim. For example, look for -DDYNAMIC_PYTHON3_DLL - Download Python 3.## Windows embeddable package (64-bit) from: https://www.python.org/downloads/windows/
- (optional) Use conda/mamba to install Python 2.7 as there isn't a embeddable package for Python 2.7
- Set paths in vimrc:
set pythonhome=~/AppData/Local/mambaforge/envs/py2718/
set pythondll=~/AppData/Local/mambaforge/envs/py2718/python27.dll
set pythonthreehome=C:/opt/python-3.11.1-embed-amd64/
set pythonthreedll=C:/opt/python-3.11.1-embed-amd64/python311.dll
- Test inside vim with:
:py print "helloworld"
:py3 print("helloworld")