1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-01 06:40:05 +08:00
SpaceVim/docs/_posts/2017-02-20-install-vim-or-neovim-with-python-support.md

50 lines
1.2 KiB
Markdown
Raw Normal View History

2017-02-20 22:05:01 +08:00
---
title: "Install vim/neovim with python support"
2018-05-27 20:54:33 +08:00
categories: blog
2020-05-10 14:05:04 +08:00
description: "How to build vim or neovim from source with python enabled?"
2018-01-25 22:57:56 +08:00
comments: true
2018-07-05 16:22:44 +08:00
commentsID: "Install neovim or vim"
2017-02-20 22:05:01 +08:00
---
2021-08-27 10:25:02 +08:00
# Install Vim/Neovim with Python support
2017-02-20 22:05:01 +08:00
2021-08-27 10:25:02 +08:00
This artical will tell you how to install vim and neovim, and how to enable `+python3` support.
<!-- vim-markdown-toc GFM -->
- [Install Neovim](#install-neovim)
- [Windows](#windows)
- [Linux](#linux)
- [Enable python3 support](#enable-python3-support)
<!-- vim-markdown-toc -->
2021-08-27 10:25:02 +08:00
## Install Neovim
### Windows
On Windows, the easiest way to install Neovim is to download
[Neovim.zip](https://github.com/neovim/neovim/releases/download/nightly/nvim-win32.zip)
from neovim release page. and extract it into `C:\Neovim`. You can also add `C:\Neovim\bin` to your `PATH`.
### Linux
You can install neovim or vim with default package manager.
**Ubuntu**
`sudo apt install neovim`
**Arch Linux**
`sudo pacman -S neovim`
## Enable python3 support
First of all, you need to install python3. and set the env `PYTHON3_HOST_PROG` to the path of python. for example:
`C:\Python39\python.exe`.
Install `pynvim`, run `python -m pip install pynvim`.