Skip to main content

Setup Neovim

  1. Remove the current version of NeoVim:

    sudo apt-remove neovim
  2. Download the latest version (0.5.0 appimage) from GitHub.

  3. Navigate to the directory where it was downloaded (e.g., cd ~/Downloads).

  4. Make it executable for your user:

    chmod u+x ./nvim.appimage
  5. Move it to a folder indexed in your PATH environment variable, such as /usr/local/bin, to enable using nvim directly:

    sudo mv nvim.appimage /usr/local/bin/nvim
  6. Ensure nvim works by typing nvim.

Bonus: Add the following line to ~/.bashrc, ~/.zshrc, etc., to create an alias in case you accidentally type vi:

alias vi=nvim

Bonus #2: Set your EDITOR environment variable to /usr/local/bin/nvim in ~/.bashrc, ~/.zshrc, etc.:

EDITOR=/usr/local/bin/nvim
  1. Install necessary plugins or packages:

  2. Install the theme from rose-pine/neovim.

  3. Install ripgrep:

    sudo apt-get install ripgrep