How to install the latest release of NeoVim in your Ubuntu system (it also works...
source link: https://gist.github.com/opchav/5ba865c9e6415c2af825bad153f876f7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How to install the latest release of NeoVim in your Ubuntu system (it also works if you're using WSL 2) · GitHub
Remove neovim if you have it in your system
sudo apt remove --purge neovim
sudo apt autoremove
Download nvim.appimage
cd ~
wget https://github.com/neovim/neovim/releases/download/v0.4.4/nvim.appimage
Move the file and flag it as runnable
sudo mv nvim.appimage /usr/local/bin
sudo chmod +x /usr/local/bin/nvim.appimage
Set the command vi
, vim
and ex
to run neovim
CUSTOM_NVIM_PATH=/usr/local/bin/nvim.appimage
sudo update-alternatives --install /usr/bin/ex v "${CUSTOM_NVIM_PATH}" 110
sudo update-alternatives --install /usr/bin/vi vi "${CUSTOM_NVIM_PATH}" 110
sudo update-alternatives --install /usr/bin/vim vim "${CUSTOM_NVIM_PATH}" 110
Enable neovim clipboard (WSL Only)
Download win32yank.exe within Windows. Choose any path you want. I use C:\Users<user>\win32yank.exe
Run this command:
# Copy/Paste/Cut
# WSL support: https://github.com/neovim/neovim/wiki/FAQ#how-to-use-the-windows-clipboard-from-wsl
# Actually neovim looks for win32yank.exe executable for handling clipboard so we only need symlink that so that it can be accessed on linux
# see: https://github.com/neovim/neovim/blob/master/runtime/autoload/provider/clipboard.vim#L115
sudo ln -s "/mnt/c/path/to/win32yank.exe" "/usr/local/bin/win32yank.exe"
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK