Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


Neovim

Neovim is a fork of Vim seeking to aggressively refactor Vim in order to simplify maintenance, encourage contributions, split the work between multiple developers, enable advanced UIs without modifications to the core, and to maximize extensibility.

Reference(s)

Table of contents


Install

# emerge -a app-editors/neovim
# pacman -S neovim
# apt install neovim
# yum install neovim
# dnf install neovim

Install from source

See https://github.com/neovim/neovim/wiki/Building-Neovim.

Install the build prerequisites:

Clone the project and checkout to the desired release (e.g. stable or v0.4.3):

$ mkdir -p ~/apps/src-apps
$ cd ~/apps/src-apps
$ git clone https://github.com/neovim/neovim.git
$ cd neovim
$ git checkout v0.4.4 # e.g. checkout to v0.4.4

Build the project:

$ make CMAKE_BUILD_TYPE=Release
$ sudo make insall


Config

You can check my personal config here.


Use

There is no better place to learn how to use Neovim than the manual:

$ nvim
    :help nvim

Troubleshooting

E437: terminal capability "cm" required

If you get the bellow error when opening Neovim:

E437: terminal capability "cm" required

Then you might want to prefix your Neovim command with TERM=xterm.


If this cheat sheet has been useful to you, then please consider leaving a star here.