nvim command not found

In this troubleshooting guide we learn how to fix nvim command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nvim: command not found

or when using sudo you get the following error message

sudo: nvim: command not found

Solutions to nvim: command not found

How To Fix nvim: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nvim is provided by neovim package.

neovim is:

Neovim is a fork of Vim focused on modern code and features, rather than running in legacy environments.

msgpack API enables structured communication to/from any programming language. Remote plugins run as co-processes that communicate with Neovim safely and asynchronously.

GUIs (or TUIs) can easily embed Neovim or communicate via TCP sockets using the discoverable msgpack API.

To fix this problem, we can install more using the command below.

sudo apt-get -y install neovim

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install neovim.

sudo apt -y install neovim

Or if you have aptitude installed you can use the following command.

sudo aptitude install neovim

Summary

In this tutorial we learn how to fix nvim command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.