Skip to content

Instantly share code, notes, and snippets.

@hvrsim
Created December 23, 2024 17:42
Show Gist options
  • Save hvrsim/bce7541b7d4ee71e6f0511150c3cdb45 to your computer and use it in GitHub Desktop.
Save hvrsim/bce7541b7d4ee71e6f0511150c3cdb45 to your computer and use it in GitHub Desktop.
Neovim install script for ubuntu
#!/bin/sh
# Version of vim to install, you can check the neovim versions
# at https://github.com/neovim/neovim/tags
VERSION="v0.10.1"
# Create the build directory
mkdir -p ~/builds/
cd ~/builds/
# Clone the git repo and enter it.
git clone --branch=$VERSION https://github.com/neovim/neovim
cd neovim
# Install the build dependencies
sudo apt-get install ninja-build gettext cmake unzip curl build-essential
# Build and install neovim
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment