Created
May 13, 2020 08:00
-
-
Save michaelfranzl/9679a5fba1ac1f57ce2083edee9d2477 to your computer and use it in GitHub Desktop.
Download, compile and install newest neovim for the local user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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