Installing the Latest Version of neovim
This article explains the steps for installing the latest version of neovim from the official site.
Downloading and Installing neovim
These steps download the latest release and extract it under /opt.
Download and Install Commands
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim-linux-x86_64
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gzExample of Downloading and Installing
kazu@ubuntu2604:~$ curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
100 10.87M 100 10.87M 0 0 16.51M 0 0
kazu@ubuntu2604:~$ sudo rm -rf /opt/nvim-linux-x86_64
kazu@ubuntu2604:~$ sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
kazu@ubuntu2604:~$ ls -ltr /opt
total 4
drwxr-xr-x 5 root root 4096 Jul 19 18:34 nvim-linux-x86_64
kazu@ubuntu2604:~$The downloaded nvim-linux-x86_64.tar.gz file remains in the directory where you ran the command — delete it if you no longer need it.
Setting the PATH Environment Variable
Since neovim is installed under /opt, add it to your PATH.
Setting the PATH Environment Variable
echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' >> ~/.bashrc
source ~/.bashrcLaunching neovim
Command to Launch nvim
nvimExample of Running nvim
kazu@ubuntu2604:~$ nvim
~
~
~
~ │ ╲ ││
~ ││╲╲││
~ ││ ╲ │
~
~ NVIM v0.12.4
~ ────────────────────────────────────────────
~ Nvim is open source and freely distributable
~ https://neovim.io/#chat
~ ────────────────────────────────────────────
~ type :help nvim<Enter> if you are new!
~ type :checkhealth<Enter> to optimize Nvim
~ type :q<Enter> to exit
~ type :help<Enter> for help
~ ────────────────────────────────────────────
~ type :help news<Enter> for v0.12 notes
~ ────────────────────────────────────────────
~ Help poor children in Uganda!
~ type :help Kuwasha<Enter> for information
~
~
[No Name] 0,0-1 AllReferences
Related Articles
- Changing the Hostname on Ubuntu 26.04 LTS Server (hostnamectl)
- Updating Packages on Ubuntu 26.04 LTS Server (apt update / upgrade)
- Setting the Timezone and Time Synchronisation on Ubuntu 26.04 LTS Server
- Creating Users and Granting sudo Privileges on Ubuntu 26.04 LTS Server
- Configuring the SSH Server on Ubuntu 26.04 LTS Server
- Setting Up a telnet Server on Ubuntu 26.04 LTS Server
- Configuring inetd (the Super-Server) on Ubuntu 26.04 LTS Server
- Setting Up a TFTP Server on Ubuntu 26.04 LTS Server (tftpd-hpa)
- FTP Server Setup on Ubuntu 26.04 LTS Server (vsftpd)
- Setting Up a syslog Server on Ubuntu 26.04 LTS Server (rsyslog)
- Managing Services with systemctl and Reading Logs with journalctl on Ubuntu 26.04 LTS Server
- Configuring Automatic Updates on Ubuntu 26.04 LTS Server (unattended-upgrades)
- Automating the Initial Setup of Ubuntu 26.04 LTS Server with cloud-init
- Configuring Kernel Parameters on Ubuntu 26.04 LTS Server (sysctl)
- Configuring the Network on Ubuntu 26.04 LTS Server (Netplan)
- Configuring Name Resolution on Ubuntu 26.04 LTS Server (systemd-resolved)
- Changing the NTP Source on Ubuntu 26.04 LTS Server (chrony)
- Static Routes on Ubuntu 26.04 LTS Server (Netplan)
- How to Install the Latest neovim from the Official Site on Ubuntu 26.04 LTS Server