DEV Community

nabbisen
nabbisen

Posted on

Vim / Neovim on CentOS 8

This post shows how to install Vim / Neovim on CentOS 8.

Vim

First, Vim is easy to get:

# dnf install vim
Enter fullscreen mode Exit fullscreen mode

That's really it. Now vim command is available.

Neovim

Next, on Neovim, thanks to AppImage, configuration of EPEL repository is not necessary any more, which has been in CentOS 7.

# # prepare
# dnf install curl
# # for the sake of running appimage:
# dnf install fuse-libs

# # get appimage binary
# curl -o /usr/local/bin/nvim -LO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
# # to get the nightly version instead:
# #curl -o /usr/local/bin/nvim -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage

# # make it executable
# chmod u+x /usr/local/bin/nvim
Enter fullscreen mode Exit fullscreen mode

Now nvim command is available just like vi or vim.

$ nvim --version
NVIM v0.4.3
...
Enter fullscreen mode Exit fullscreen mode

The "stable" one is v0.4.3. The "nightly" one is also available.

Top comments (0)