Skip to content

Instantly share code, notes, and snippets.

@kentlouisetonino
Last active February 2, 2024 05:59
Show Gist options
  • Save kentlouisetonino/5b0494c05ae7359391a80f8ff14afac0 to your computer and use it in GitHub Desktop.
Save kentlouisetonino/5b0494c05ae7359391a80f8ff14afac0 to your computer and use it in GitHub Desktop.
Description

Install the latest release.

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage

Make it executable.

chmod u+x nvim.appimage

Extract the source.

./nvim.appimage --appimage-extract

Rename the folder.

mv neovim squashfs-root neovim

Move the folder to /opt directory.

sudo mv neovim /opt/

Go to the /usr/bin directory, create an nvim file, and open the file.

cd /usr/bin
sudo touch nvim
sudo vim nvim

Add script inside the nvim file and save.

#!/bin/bash

/opt/neovim/usr/bin/nvim $1

Make it executable.

sudo chmod +x nvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment