diff --git a/bootstrap.sh b/bootstrap.sh index 294a130..b20091b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -126,10 +126,11 @@ function configure_tmux(){ function configure_vim(){ echo_green "Configuring vim..." - # sudo -u $NEW_USER bash -c 'curl -sfLo ~/.vim/autoload/plug.vim --create-dirs "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"' + sudo -u $NEW_USER bash -c 'curl -sfLo ~/.vim/autoload/plug.vim --create-dirs "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"' - # sudo -u $NEW_USER bash -c 'cp vimrc ~/.vimrc' - # sudo -u $NEW_USER bash -c 'vim ~/.vimrc +PlugInstall +q +q' + sudo -u $NEW_USER bash -c 'cp vimrc ~/.vimrc' + sudo -u $NEW_USER bash -c 'vim ~/.vimrc +PlugInstall +q +q' + sudo -u $NEW_USER bash -c 'rm ~/.vimrc' # Add for the root user as well.. curl -sfLo ~/.vim/autoload/plug.vim --create-dirs "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"