git clone [email protected]:jclsn/vimconfig.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Copy .vimrc
to /root/.vimrc
sudo cp ~/.vim/vimrc /root/.vimrc
and explicitly add the user directory path (exchange user with you username)
sudo sed -i 's|~|/home/user|g' /root/.vimrc
Then install vim-plug as root:
sudo su
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim