git clone [email protected]:uri/vim.git ~/.config/nvim
# If using legacy vim config path (not neovim's)
ln -s ~/.config/nvim ~/.vim
echo "lua require('init')" > ~/.vim/vimrc
If using NeoVim and tmux, there's also a problem when switching panes. The following snippet will fix the problem:
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
Originally found neovim/neovim#2048 (comment)