Setting up neovim (0.4.4-1) ...
update-alternatives: using /usr/libexec/neovim/ex to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/libexec/neovim/rvim to provide /usr/bin/rvim (rvim) in aut
o mode
update-alternatives: using /usr/libexec/neovim/rview to provide /usr/bin/rview (rview) in
auto mode
update-alternatives: using /usr/bin/nvim to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/nvim to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/libexec/neovim/view to provide /usr/bin/view (view) in aut
o mode
update-alternatives: using /usr/libexec/neovim/vimdiff to provide /usr/bin/vimdiff (vimdif
f) in auto mode
默认情况下,Ubuntu 系统上既不安装
vim
也不neovim
安装。默认情况下,Ubuntu 通过 package 附带一个最小版本的 Vimvim-tiny
。如果在你的系统上,'vim --version' 会显示关于 neovim 的信息,它是 vim 的一个分支,那么这意味着你曾经安装过 neovim(包
neovim
)。在安装期间,该软件包将使用“debian Alternatives”系统包含命令vi
并vim
指向nvim
( ):/usr/bin/nvim
sudo apt install neovim
仅当尚未启用这些链接时,才会设置这些链接。例如,如果您之前安装了
vim
,则命令vi
和vim
将继续指向vim
,/usr/bin/vim.basic
。默认情况下,该命令vim
不可用,并vi
指向/usr/bin/vim.tiny
.