Categories: TutorialsUbuntu

How to Install NeoVim Editor on Ubuntu 22.04 LTS

Introduction

Neovim is an extendable Vim based text editor. It is unique in a sense that it works flawlessly on major Linux distributions. It can be extended using plugins and APIs. It can also be hosted on cloud for the team work. It is compatible with Vim editing model and Vimscript.

Neovim is 30% lighter than regular Vim. It comes with an excellent modern interface. Neovim has a built-in terminal emulator for efficient work.

I am using Ubuntu 22.04, and I will show you the installation of Neovim on Ubuntu 22.04 LTS edition. The instructions discussed here are only compatible with Ubuntu distributions. You must not run them on Debian.

Sponsored

Prerequisites to Install Neovim Editor

There are no dependencies required to install Neovim text editor.

Step 1. Install Neovim Editor on Ubuntu LTS

I prefer to update my Linux system before installing any new software. Use the following commands to update and install Neovim respectively.

$ sudo apt update
$ sudo apt install neovim

Neovim will be readily available once installed.

Step 2. Verify Neovim Installation

Neovim is a command-line and GUI-based text editor. Therefore it can be accessed via both the command line user interface and the dashboard. We will verify the presence of Neovim now using the dashboard. Neovim tries their best to keep the less use of CLI.

Sponsored

Once searched successfully we can launch the editor.

Step 3. Launch Neovim Editor

When you have located it correctly then you can always launch it in no time. I will launch it from the dashboard instead of CLI as it suits me.

Step 4. Important Neovim Key Bindings

As Neovim is based on vim, it has similar key bindings. I will discuss some important keys here to make it easier for you when running Neovim for the first time.

  1. Use the cursor keys to move around or use the following shortcuts to navigate.
  2. To go left, you will need to use “h”
  3. To go down, “j” is used as standard.
  4. To go up, the only key is “k” to use.
  5. To go right, the “l” key is used to navigate.

Step 5. Uninstall Neovim Editor From Ubuntu 22.04

Now we will learn how to uninstall the Neovim Editor. It is simple to do so. You will need standard Ubuntu command to remove the packages. Invoke the following command to make sure it is done.

$ sudo apt remove neovim

Conclusion

In this tut, we observed how to install and remove the Neovim. We also learned about some keybindings.

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

45 minutes ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

46 minutes ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

46 minutes ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

47 minutes ago

How to fix “Externally Managed Environment” Pip Errors on Ubuntu

If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…

47 minutes ago

Ubuntu now officially supports NVIDIA Jetson: powering the future of AI at the edge

Canonical announces the General Availability of Ubuntu for the NVIDIA® Jetson Orin™ for edge AI…

8 hours ago