Neovim keeps Vim’s modal editing, but it is much easier to extend with Lua, LSP clients, and modern plugin managers. That makes it straightforward to install Neovim on Fedora for coding, quick config edits, or remote work after you set up SSH on Fedora, with the DNF package as the cleanest place to start.
Fedora’s repositories already include neovim, so most readers can install it with one command and get the normal nvim executable in every shell. Flathub also ships a Flatpak build when you want a sandboxed app, while upstream source and generic binary downloads are usually less convenient on Fedora because the packaged methods keep updates simple.
Install Neovim on Fedora
Fedora already packages Neovim, so you do not need RPM Fusion, a COPR repo, or a manual RPM just to get started. The DNF package is the better default if you want the plain nvim command, full host file access, and the fewest surprises with plugins or remote shells. Flatpak makes more sense when you want the editor isolated from the rest of the system.
| Method | Source | Terminal command | Access model | Best fit |
|---|---|---|---|---|
| DNF package | Fedora packages | nvim | Full host access | Most users, SSH sessions, plugin-heavy setups |
| Flatpak build | Flathub | flatpak run io.neovim.nvim | Sandboxed by default | Desktop use, isolated installs, Flatpak-first workflows |
The DNF package is the best default for most Fedora systems because it gives you a normal nvim command, works cleanly over SSH, and avoids sandbox friction with host files or plugin tooling.
Install Neovim with DNF on Fedora
Start with the Fedora package if you want the usual terminal workflow and the least setup.
sudo dnf upgrade --refresh
This guide uses
sudofor commands that need root privileges. If your account is not in the sudoers file yet, run the commands as root or follow the guide to add a user to sudoers on Fedora.
sudo dnf install neovim
The Fedora package adds the nvim command for terminal use and a Neovim launcher in GNOME Activities on Fedora Workstation. On Server or minimal installs without a desktop session, launch it from the terminal instead.
Verify that Fedora installed the editor correctly:
nvim --version | head -3
NVIM v0.11.6 Build type: RelWithDebInfo LuaJIT 2.1.1767980792
Install Neovim with Flatpak on Fedora
Use Flatpak when you want Neovim isolated from the rest of the system or you already manage desktop apps through Flathub. Fedora Workstation includes Flatpak by default, while Server or minimal installs usually need the package first.
sudo dnf install flatpak
Add Flathub as a system remote if it is not configured yet:
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Install the Neovim Flatpak from Flathub:
sudo flatpak install flathub io.neovim.nvim
This method uses sudo because Fedora Workstation normally keeps Flathub as a system-scoped remote. A plain flatpak install can fail with a “Flatpak system operation … not allowed for user” error when the remote is system-scoped.
Verify that Flatpak registered the application correctly:
flatpak info io.neovim.nvim | sed -n '1,10p'
Neovim - Vim-fork focused on extensibility and usability
ID: io.neovim.nvim
Ref: app/io.neovim.nvim/x86_64/stable
Arch: x86_64
Branch: stable
Version: 0.11.6
Origin: flathub
Installation: system
Start Using Neovim on Fedora
After installation, start with the terminal first. That immediately tells you which command belongs to the method you chose and avoids confusion later when you open files over SSH or from a shell script.
Open Neovim from the Terminal
# DNF package
nvim
# Flathub build
flatpak run io.neovim.nvim
If the Flatpak method leaves nvim unavailable in your shell, that is expected. Use flatpak run io.neovim.nvim, or add an alias in your shell profile only if you want a shorter command.
Open or Create a File in Neovim
Neovim creates a new file if the path does not exist, so the same command works for editing an existing file or starting a fresh note.
# DNF package
nvim ~/notes/todo.md
# Flathub build
flatpak run io.neovim.nvim ~/notes/todo.md
Inside Neovim, press i to enter Insert mode and start typing. Press Esc to leave Insert mode, use :wq to save and quit, and use :q! to leave without saving changes.
Launch Neovim from Activities on Fedora Workstation
The DNF package installs /usr/share/applications/nvim.desktop, and the Flatpak build adds its own launcher. On Fedora Workstation, search for “Neovim” in Activities and open it from the results. On Server or minimal systems without GNOME, stick with the terminal commands above.


Configure Neovim on Fedora
Neovim uses the same XDG config path on Fedora as it does on other Linux distributions. New setups usually start with ~/.config/nvim/init.lua, while older Vimscript-based setups still use ~/.config/nvim/init.vim.
Create a Minimal init.lua for Neovim
Create the configuration directory if this is your first Neovim setup:
mkdir -p ~/.config/nvim
Then write a small Lua config that enables line numbers, spaces for indentation, true color, and clipboard integration when a provider is available:
cat <<'EOF' > ~/.config/nvim/init.lua
vim.g.mapleader = " "
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.termguicolors = true
vim.opt.clipboard = "unnamedplus"
EOF
Open the file again with nvim ~/.config/nvim/init.lua whenever you want to extend the setup. The unnamedplus option uses the system clipboard once a Wayland or X11 clipboard provider is available.
Choose a Neovim Plugin Manager or Starter Configuration
lazy.nvim is the better fit if you want to keep the minimal config above and add plugins one at a time. It works well when you want fast startup and a setup you understand piece by piece.
kickstart.nvim makes more sense when you would rather start from a working Lua template with LSP, Treesitter, Telescope, and keymaps already wired up. That is often the faster path if you are building Neovim into a full development environment instead of a lightweight editor.
Both options clone files from GitHub, so make sure git --version works first. If it does not, install Git on Fedora before you start pulling plugin managers or starter configs.
git --version
git version 2.53.0
Update or Remove Neovim on Fedora
Update Neovim Installed with DNF
The repository package updates through normal Fedora system upgrades:
sudo dnf upgrade --refresh
Update Neovim Installed with Flatpak
The Flathub build updates through Flatpak:
sudo flatpak update io.neovim.nvim
Remove the DNF Neovim Package
On Fedora 43, dnf remove already cleans up unused dependencies unless you explicitly disable that behavior. You do not need a separate dnf autoremove command for this package.
sudo dnf remove neovim
Remove the Flatpak Neovim Build
Use the system-scoped uninstall command if you installed Neovim from Flathub with sudo:
sudo flatpak uninstall io.neovim.nvim
If you also want Flatpak to remove runtimes that nothing else uses, run this optional cleanup step afterward:
sudo flatpak uninstall --unused
Delete Neovim Configuration and Plugin Data
The following commands permanently delete your Neovim configuration, plugins, state files, and Flatpak sandbox data. Back up anything you want to keep before removing these directories.
If you followed the configuration section, ~/.config/nvim contains your own settings. After Neovim runs, it also creates state under ~/.local/share/nvim and ~/.local/state/nvim. The Flatpak build adds sandbox data in ~/.var/app/io.neovim.nvim.
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim
rm -rf ~/.var/app/io.neovim.nvim
Some plugin combinations also create ~/.cache/nvim. Remove it too if that directory exists on your system:
rm -rf ~/.cache/nvim
Verify that the package and the Flatpak build are both gone:
rpm -q neovim
flatpak list --app | grep -F io.neovim.nvim
package neovim is not installed
The flatpak list check returns no output when the Flathub build has been removed.
Troubleshoot Neovim on Fedora
Fix “command not found: nvim” After the Flatpak Install
This usually happens when Neovim was installed from Flathub instead of DNF. The Flatpak build runs through the app ID, so a plain shell may not expose a normal nvim binary.
zsh: command not found: nvim
Verify that the Flatpak build works by launching it directly:
flatpak run io.neovim.nvim --version | head -3
NVIM v0.11.6 Build type: RelWithDebInfo LuaJIT 2.1.1762617240
If you want the plain nvim command in every shell, reinstall Neovim with the DNF method. Otherwise keep using flatpak run io.neovim.nvim or add a shell alias in your preferred profile.
Fix Clipboard Warnings in Neovim
If copying and pasting does not work, check Neovim’s provider health from inside the editor:
:checkhealth provider
Clipboard (optional) ~ - WARNING No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.
This warning is common in plain SSH sessions because the remote shell has no access to your local desktop clipboard. On Fedora Workstation, wl-clipboard is the usual provider for Wayland. On X11 sessions, install xclip instead.
# Wayland sessions
sudo dnf install wl-clipboard
# X11 sessions
sudo dnf install xclip
Restart Neovim inside your graphical session and run :checkhealth provider again. If you edit files only over SSH without X11 or Wayland forwarding, clipboard integration with your local desktop still will not work until that remote session can reach a real clipboard provider.
Frequently Asked Questions About Neovim on Fedora
Neovim upstream publishes source and generic binaries, but Fedora already ships the maintained neovim package and Flathub carries a Flatpak build. For most Fedora systems, those packaged methods are easier to update and less work to maintain than a manual download.
Use DNF if you want the normal nvim command, full host file access, and the smoothest experience over SSH or with plugins. Use Flatpak when you specifically want the editor sandboxed or you already manage desktop apps through Flathub.
Neovim on Fedora supports both. New setups usually start with ~/.config/nvim/init.lua because Lua is the current default for most modern guides, while older Vimscript-based setups still use ~/.config/nvim/init.vim.
The DNF method needs sudo because it installs a system package. If you do not have admin access, a user-scoped Flatpak install is the usual alternative, but it follows a different remote setup and does not behave like the system-wide workflow shown here.
Conclusion
Neovim is now ready on Fedora, with the native nvim command from DNF or the sandboxed Flathub build if you prefer Flatpak. If plugins are next, install Git on Fedora. For remote config edits and server work, set up SSH on Fedora and keep the DNF build in your shell.
Formatting tips for your comment
You can use basic HTML to format your comment. Useful tags currently allowed:
<code>command</code>command<strong>bold</strong><em>italic</em><blockquote>quote</blockquote>