Installation of Neovim in Linux Distribution
Neovim is typically included in the repositories of most Linux distributions due to its popularity. Consequently, there’s a strong likelihood that you can conveniently acquire it using your distribution’s package manager. To obtain Neovim, simply follow the specific commands tailored to your distribution.
1. For Ubuntu and its derivatives you can use the apt package manager. The same command will also apply to Debian systems.
$ sudo apt install neovim
2. On Arch-based distributions you can use the pacman package manager.
$ sudo pacman -S neovim
3. For RHEL/CentOS you can use the yum package manager.
$ yum install -y neovim python3-neovim
4. On Fedora you can use the dnf package manager.
$ sudo dnf install -y neovim python3-neovim
5. In the case of Gentoo-based Linux distributions, you can utilize the provided command:
$ emerge -a app-editors/neovim
If the Neovim package is not available in your distribution’s repositories, an alternative is to opt for the Flatpak version. To install the Flatpak version of neovim, follow the steps outlined below:
Step 1: Navigate to https://flatpak.org/setup/, where you can select your specific distribution and proceed to follow the provided installation instructions for Flatpak.
Step 2: After completing the setup, you can utilize the provided command to fetch the Flatpak version of neovim.
$ flatpak install flathub io.neovim.nvim
Now you’ve successfully downloaded Neovim.
How to Install and Use Neovim in Linux
Neovim, short for Neo-Vi Improved, is a fork of Vim (Vi-Improved) with the primary goal of enhancing the codebase. This improvement facilitates the easier implementation of APIs, enhances the user experience, and supports plugin development.