When booting a fresh installation of Raspbian, the version of neovim that comes
as part of the apt repositories is currently:
neovim/stable 0.1.7-3 armhf
This usually isn’t a recent enough build for most plugins that you’ll want to use. So it’s often necessary to build neovim from source, below list the steps to do so:
Firstly, you need some prerequisites installed:
You can install these with the normal apt procedure e.g.
sudo apt install cmake automake libtool \ libtool-bin gettext
Once complete, you can proceed to clone the repository for neovim from: here using the command:
git clone https://github.com/neovim/neovim.git
Change into the newly created directory and run the install commands:
cd $_ make CMAKE_BUILD_TYPE=RelWithDebInfo sudo make install pip3 install neovim
This will take a while depending on which version of the Raspberry Pi you’re using. However, once complete you should now have a working Neovim setup on Raspbian, verify this with:
(ssh) pi@pi3 : nvim --version NVIM v0.3.2-1043-ge9685d9f7 Build type: RelWithDebInfo
NB: If you run
nvim and get a bunch of errors, just run
Google around until you find solutions for those errors.