How to install Neovim from source on Ubuntu 20.04 LTS

Neovim logo

Why from source?

Installation

sudo apt-get install ninja-build \
gettext libtool libtool-bin \
autoconf automake cmake g++ \
pkg-config unzip
git clone https://github.com/neovim/neovim.git
git checkout stable
make CMAKE_BUILD_TYPE=Release \
CMAKE_INSTALL_PREFIX=<NEOVIM_LOCATION> install
export PATH=”<NEOVIM_LOCATION>/bin:$PATH”
nvim awesome-file.txt
Neovim’s :checkhealth partial output
rm -rf build .deps # the command 'make distclean' performs the same

Uninstall

sudo rm -rf <NEOVIM_LOCATION>

Sources

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store