Created
March 22, 2020 12:01
-
-
Save glippi/a08931475358058e48332574e11ee09a to your computer and use it in GitHub Desktop.
Installation of latest NeoVim release for Ubuntu/Debian based Linux distros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove the current version of NeoVim sudo apt-remove neovim | |
Download latest version appimage from github (https://github.com/neovim/neovim/releases) | |
cd into the directory it was downloaded to e.g. cd ~/Downloads | |
Make it executable for your user chmod u+x ./nvim.appimage | |
Move it to a folder that's indexed in your PATH env var so your computer knows what you mean when you type nvim. You can check the folders in your current path by typing echo $PATH which will show you something like this: /usr/local/bin:/usr/bin. Notice there are 2 folders here in this case separated by a colon (:). You will likely have more than two. /usr/local/bin is a common place to stick it. To move it there you'll need to use sudo: sudo mv nvim.appimage /usr/local/bin/nvim | |
When you type nvim it should "just work™" | |
Bonus: add this to ~/.bashrc/~/.zshrc etc to create an alias in case you accidentally type vi (I always type it by mistake): alias vi=nvim | |
Bonus #2: Also in your bashrc/zshrc etc set your EDITOR env var so various programs know what editor you prefer to use: EDITOR=/usr/local/bin/nvim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment