How To Install Neovim on Ubuntu 20.04 | 22.04 LTS

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

In this guide, we will show you how to install and use Neovim on Ubuntu systems

Neovim is a refactor, and sometimes redactor, in the tradition of Vim. It is not a rewrite but a continuation and extension of Vim. Many clones and derivatives exist, some very clever—but none are Vim. Neovim is built for users who want the good parts of Vim, and more.

Install Neovim on Ubuntu-APT method

Follow the steps below to get started with Neovim :

  • Update your Ubuntu system packages with running the below command:
sudo apt update -y && sudo apt upgrade -y
sudo apt install wget apt-transport-https gnupg2 software-properties-common
  • Neovim package is not available on Ubuntu base repository. So You can install it via importing PPA repo as follows:
sudo add-apt-repository ppa:neovim-ppa/stable
  • Run the command below to reflect on PPA
sudo apt update -y
  • Then install Neovim as shown below:
sudo apt install neovim
neovim ubuntu

Install Neovim on Ubuntu-GitHub repository method

Follow the steps below to get started with Neovim :

  • Update your Ubuntu system packages with running the below command:
sudo apt update -y && sudo apt upgrade -y
sudo apt install wget apt-transport-https gnupg2 software-properties-common
  • Now run the command below to download the latest version of Neovim from the GitHub
wget https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.tar.gz
neovim ubuntu
  • Extract the downloaded file of the Neovim as shown below:
tar xzvf nvim-linux64.tar.gz
  • Finally, start the Neovim as shown below:
./nvim-linux64/bin/nvim

Access Neovim

  • Access neovim through CLI by using the command below:
nvim
  • You can search on the system search bar by typing Neovim as follows
  • Neovim will be launched as shown below
neovim ubuntu
  • Use the help option with nvim to get all possible options with it:
nvim --help
  • Use nvim to edit a file. For example as shown below:
nvim unixcop

How to Remove (Uninstall) Neovim

  • Remove Neovim APT Method
sudo apt autoremove neovim --purge -y

Install Neovim -Conclusion

That’s it

Thanks.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
MQ-Jr
MQ-Jr
unixcop Admin

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook