Neovim has been added to a Ubuntu PPA. For more information check neovim/neovim.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovimCreate a symlink to our config-folder for Neovim:
ln -s ~/.vim ~/.config/nvimCheck the build prerequisites, e.g. recent verions of CMake and (Clang or GCC)
sudo apt-get install ninja-build libtool libtool-bin autoconf automake cmake g++ pkg-config unzipBuild and install Neovim:
git clone https://github.com/neovim/neovim ~/.local/opt/neovim
cd ~/.local/opt/neovim
make
sudo make installMake nvim binary available via PATH:
ln -s ~/.local/opt/neovim/bin/nvim ~/.local/bin/nvim
echo 'export PATH=$PATH:$HOME/.local/bin/' >> ~/.bashrcSet TERM for neovim:
echo 'export TERM="xterm-256color"' >> ~/.bashrcIf you like, you can set up an alias for nvim:
echo "alias 'vi'='nvim '" >> ~/.bashrcNow reload the bash-settings:
source ~/.bashrcAnd create a symlink to our config-folder for Neovim:
ln -s ~/.vim ~/.config/nvimTest whether Neovim is able to use Python:
nvim
:python print "hello"If this does not work, you can install the Python package neovim manually.
For more information you can check the Neovim documentation on
Python in Neovim.
sudo apt-get install python-dev python-pip
sudo pip2 install neovimTypically /usr/bin contains a symbolic link python2 to the latest Python 2 version.
If there is no such symlink, you have to change the path in vimrc:line19.
let g:python_host_prog = '/path/to/your/python2'