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"
what is
${CUSTOME _NVIM_PATH}
? the path to the appimage? or to my .config/nvim?