Setup Neovim
-
Remove the current version of NeoVim:
sudo apt-remove neovim
-
Download the latest version (0.5.0 appimage) from GitHub.
-
Navigate to the directory where it was downloaded (e.g.,
cd ~/Downloads
). -
Make it executable for your user:
chmod u+x ./nvim.appimage
-
Move it to a folder indexed in your PATH environment variable, such as
/usr/local/bin
, to enable usingnvim
directly:sudo mv nvim.appimage /usr/local/bin/nvim
-
Ensure
nvim
works by typingnvim
.
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
-
Install necessary plugins or packages:
-
Install the theme from rose-pine/neovim.
-
Install
ripgrep
:sudo apt-get install ripgrep