Skip to main content

Install Neovim

· One min read
feilx
the biulight site owner

Ubuntu 怎样安装指定版本的 Neovim?

背景

由于 apt 中只有 Neovim(v0.72)的安装包。想使用新版需要自己安装

v0.9.5 版本为例

方案一

  1. Github 上查看指定版本的压缩包,并下载
sudo wget https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz
  1. 解压缩 nvim-linux64/opt 目录
sudo tar -C /opt -xzf nvim-linux64.tar.gz
  1. add this to your shell config (~/.bashrc, ~/.zshrc, ...):
export PATH="$PATH:/opt/nvim-linux64/bin"
  1. reload shell config
source ~/.bashrc

方案二

使用 snap 包管理工具安装

sudo snap install nvim --classisc