git clone https://github.com/neovim/neovim.git cd neovim sudo apt install libtool libtool-bin autoconf automake cmake g++ pkg-config unzip libmsgpack-dev libuv1-dev libluajit-5.1-de gettext git checkout stable make CMAKE_BUILD_TYPE=RelWithDebInfo cd build sudo apt remove neovim-runtime # get rid of existing nvim sudo apt autoremove # clean out the rest of nvim junk cpack -G DEB && sudo dpkg -i nvim-linux64.deb sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 1