DEV Community

nabbisen
nabbisen

Posted on

3

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)

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️