在升级的尝试中nvim
NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-u4YhjF/neovim-0.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-u4YhjF/neovim-0.4.4/build/config -I/build/neovim-u4YhjF/neovim-0.4.4/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-u4YhjF/neovim-0.4.4/build/src/nvim/auto -I/build/neovim-u4YhjF/neovim-0.4.4/build/include
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
从latest
到nightly
(因为lsp
)
我运行了下面的命令
sudo apt remove neovim
rm -rf ~/.config/nvim/
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
随着 nvim 的开放,这似乎成功了
但是当我尝试使用它时,我得到了这个结果
$ nvim .
Command 'nvim' not found, but can be installed with:
sudo snap install nvim # version v0.4.4-stable, or
sudo apt install neovim # version 0.4.4-1
See 'snap info nvim' for additional versions.
$ nvim --version
Command 'nvim' not found, but can be installed with:
sudo snap install nvim # version v0.4.4-stable, or
sudo apt install neovim # version 0.4.4-1
See 'snap info nvim' for additional versions.
为什么这样?
我应该添加appimage
我的路径吗?(如何?)
vim
奇怪的是它也经常杀死
$ vim .
Command 'vim' not found, but can be installed with:
sudo apt install vim # version 2:8.2.2434-1ubuntu1, or
sudo apt install vim-tiny # version 2:8.2.2434-1ubuntu1
sudo apt install neovim # version 0.4.4-1
sudo apt install vim-athena # version 2:8.2.2434-1ubuntu1
sudo apt install vim-gtk3 # version 2:8.2.2434-1ubuntu1
sudo apt install vim-nox # version 2:8.2.2434-1ubuntu1
更新
修补问题后
添加到我的bashrc
alias nvim="./nvim.appimage"
我仍然不知道为什么我的(常规)vim 消失了,我也注意到"+P
"+Y
不再从剪贴板粘贴
(在这里打开了一个特定的问题)