关于ubuntu:Ubuntu-2004-aptget-安装-Neovim-v061

20次阅读

共计 566 个字符,预计需要花费 2 分钟才能阅读完成。

Ubuntu 20.04 在装置 Neovim 的时候,间接应用 sudo apt-get install neovim,会装置比拟老的版本,而老版本的 Neovim 不能应用 Lua 进行配置,所以,须要装置较新版本。

参考 https://github.com/neovim/neo…

如果要装置 stable 版本,运行:

sudo add-apt-repository ppa:neovim-ppa/stable

如果要装置 unstable 版本,运行:

sudo add-apt-repository ppa:neovim-ppa/unstable

之后更新 apt 源并装置即可

sudo apt-get update
sudo apt-get install neovim

查看 Neovim 版本号确定装置版本无误

❯ nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

正文完
 0