Install neovim on Ubuntu 16.04

NeoVim is improved Vim editor. Vim is a powerful text editor with a big community that is constantly growing.

You can find more about neovim at

https://neovim.io/

To install NeoVim on Ubuntu, run

sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim

To set neovim as default, run

sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor

Posted in Ubuntu