Neovim is the fork of the popular text editor vim which aims to update the functionality and reusability with modern GUI, asynchronous job control, etc. If you are familiar with using vim then you will also find it easy to use Neovim.
The key features of the Neovim text editor are –
- Supports XDG-based directories
- Compatible with most of the vim plugins
- Includes a terminal emulator to run commands
- Free and opensource
Today in this article I will discuss how to install and use neovim text editor in Fedora Linux.
How to install neovim in Fedora
There are multiple ways to install neovim in Fedora Linux. You can follow one of the given methods to install it on your system.
Method 1: Installing neovim from the default repository of Fedora
Neovim editor is available in the default repository of Fedora so you can directly install it by using the dnf command.
Before installing a package in Fedora make sure your system is updated –
sudo dnf update -y
Finally, use the given command to install the neovim text editor on your system –
sudo dnf install neovim
Press y and then enter if it asks for your confirmation.
Method 2: Installing neovim AppImage
The AppImage is a universal package format that runs on most Linux systems without installation.
First, use the following command to download the Neovim AppImage package.
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
Once it gets downloaded make the file executable by using the given command –
chmod u+x nvim.appimage
Finally, run the application by using the following –
./nvim.appimage
Method 3: Installing neovim using Flatpak
Flatpak is another way of building, distributing, and running sandboxed desktop applications on a Linux system.
By default, Flatpak comes preinstalled in Fedora if it is not in your system you can install it by using –
sudo dnf install flatpak -y
Next, add the Flathub repository by using the given command –
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Now use the given command to install the Neovim Flatpak package –
sudo flatpak install flathub io.neovim.nvim
Open neovim text editor in Fedora
Once the installation is completed you can open neovim from the Fedora activities dashboard. Search neovim and click on its icon when appears as you can see in the image below.
The Neovim will start in your terminal.
Press :
and then enter help nvim
to view the help on Neovim.
For usage of the Neovim editor, you can read the Nvim documentation.
Conclusion
If you know how to use vim then you can easily switch to neovim and if you are a beginner you can follow its official documentation to start using it.
Now if you have a query or feedback then write us in the comments below.