Skip to content

Instantly share code, notes, and snippets.

@michaelfranzl
Created May 13, 2020 08:00
Show Gist options
  • Save michaelfranzl/9679a5fba1ac1f57ce2083edee9d2477 to your computer and use it in GitHub Desktop.
Save michaelfranzl/9679a5fba1ac1f57ce2083edee9d2477 to your computer and use it in GitHub Desktop.
Download, compile and install newest neovim for the local user
INSTALL_DIR=$HOME/progs
git clone git@github.com:neovim/neovim.git
cd neovim
# Install prerequisites listed by https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
sudo apt install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=$INSTALL_DIR CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR" make
VIMRUNTIME=runtime ./build/bin/nvim # Try without installing
# Install
CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=$INSTALL_DIR CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR" make install
export PATH=$HOME/progs/bin:$PATH
nvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment