I’m going to show you 3 different ways to install Neovim. Most of you are likely just using whatever package manager you have available, but there are some good reasons to use the other methods as well.
This is likely the way most people are going to install Neovim. Package managers handle choosing the version for you, updating, upgrading and etc. They abstract away all of the details and will be the easiest way to install most things.
Some good reasons to not use your package manager are: not wanting to update/upgrade while updating the rest of your packages. Or conversely you may want to use the latest(nightly) version to try out new features.
sudo pacman -S neovim
sudo apt install neovim
brew install neovim
sudo pacman -R neovim
sudo apt uninstall neovim
brew uninstall neovim
NOTE You could technically ignore a package from being upgraded via your package manager, for instance: with pacman
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage mv nvim.appimage nvim chmod u+x nvim sudo mv nvim /usr/local/bin nvim
sudo rm /usr/local/bin/nvim
Using an AppImage is a great option provided you are on a relatively up to date Linux distro.
latest in the URL. If you would to install a particular version you will need to change it to the corresponding tag.
curl -LO https://github.com/neovim/neovim/releases/download/v0.7.2/nvim.appimage ^^^^^^
This method is the most complicated, but will work cross-platform, and give you the most control. This will give you the ability to checkout any branch that you want and install. You even have the option to change some of the code if you want.
git clone https://github.com/neovim/neovim.git cd neovim make CMAKE_BUILD_TYPE=Release sudo make install
This will install the latest nightly version by default. If you would like to install a different version you will need to check it out before compiling and installing.
git clone https://github.com/neovim/neovim.git cd neovim git checkout release-0.7 # git checkout v0.7.2 # by tag make CMAKE_BUILD_TYPE=Release sudo make install
NOTE If you are using this method to keep up with nightly on master make sure to
git pull before re-installing.
sudo rm /usr/local/bin/nvim sudo rm -r /usr/local/share/nvim/
git pullwhen installing nightly