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
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
- 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
- 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.