- Linux
- MacOS
- Windows
下载页面为 Releases.
- Latest stable release
- Latest development prerelease
-
必选项
Note
方便起见, 可以先不安装这些插件的依赖项, 如果有报错再根据错误信息安装相应的依赖项即可 (<leader>n
可以用来查看通知历史, 包括错误信息).
-
global
-
npm
- archlinux:
sudo pacman -S --noconfirm npm
- ubuntu:
sudo apt-get -y install npm
- fedora:
sudo dnf install -y npm
- macos:
brew install node
- archlinux:
-
-
markdown
-
markdownlint-cli2
- archlinux:
sudo pacman -S --noconfirm markdownlint-cli2
- macos:
brew install markdownlint-cli2
- archlinux:
-
-
添加 AppImage ("universal" Linux package)
The Releases page provides an AppImage that runs on most Linux systems. No installation is needed, just download
nvim.appimage
and run it. (It might not work if your Linux distribution is more than 4 years old.)curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage chmod u+x nvim.appimage ./nvim.appimage
To expose nvim globally:
mkdir -p /opt/nvim mv nvim.appimage /opt/nvim/nvim
And the following line to your shell config (
~/.bashrc
,~/.zshrc
, ...):export PATH="$PATH:/opt/nvim/"
If the
./nvim.appimage
command fails, try:./nvim.appimage --appimage-extract ./squashfs-root/AppRun --version # Optional: exposing nvim globally. sudo mv squashfs-root / sudo ln -s /squashfs-root/AppRun /usr/bin/nvim nvim
-
缺失
VCRUNTIME140.dll
- If you are missing
VCRUNTIME140.dll
, install the Visual Studio 2015 C++ redistributable (choose x86_64 or x86 depending on your system). - Choose a package (nvim-winXX.zip) from the releases page.
- Unzip the package. Any location is fine, administrator privileges are not required.
$VIMRUNTIME
will be set to that location automatically.
- Run
nvim.exe
from a terminal.
- If you are missing
-
Windows 系统无法使用
nvim
编辑文件添加PATH: 添加 nvim 程序的
bin
文件夹 (e.g.C:\Program Files\nvim\bin
) 到系统 PATH. -
拼写检查无效
If
:set spell
does not work, create theC:/Users/foo/AppData/Local/nvim/site/spell
folder.You can then copy your spell files over (for English, located here and here);
-
For Python plugins you need the
pynvim
module. "Virtual envs" are recommended.-
After activating the virtual env do
pip install pynvim
(in both). Edit yourinit.vim
so that it contains the path to the env's Python executable:let g:python3_host_prog='C:/Users/foo/Envs/neovim3/Scripts/python.exe'
-
Run
:checkhealth
and read:help provider-python
.
-