diff --git a/README.md b/README.md index fd2f4e7..81874ef 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,6 @@ or wget $ wget https://git.io/vwYRO -O - | sh ``` -You will need to exit Neovim manually with `:qa` after each step. - ### Manual Install 1. Install [vim-plug]. @@ -127,8 +125,6 @@ You will need to exit Neovim manually with `:qa` after each step. $ NVIMRC_INSTALL=true nvim -c PlugInstall ``` - You will need to exit Neovim manually with `:qa` after each step. - ### Updating Updating is handled via the normal [vim-plug commands]. diff --git a/install.sh b/install.sh index 238c955..96e985a 100755 --- a/install.sh +++ b/install.sh @@ -126,10 +126,10 @@ EOF echo -e " ➤ Run ❰ PlugInstall ❱ \033[0m" - nvim -c PlugClean! - nvim -c PlugInstall - NVIMRC_INSTALL=true nvim -c PlugInstall - nvim -c PlugClean! + nvim +PlugClean! +qa + nvim +PlugInstall +qa + NVIMRC_INSTALL=true nvim +PlugInstall +qa + nvim +PlugClean! +qa echo echo -e "\033[32m ✔ Completed ❰ PlugInstall ❱ \033[0m" @@ -163,13 +163,14 @@ dev_mode () { sed -i -e "s|${f_gstr}|${r_gstr}|g" $nvim_root/ginit.vim - nvim -c PlugClean! - nvim -c PlugInstall - nvim -c PlugClean! - nvim -c PlugUpdate + nvim +PlugClean! +qa + nvim +PlugInstall +qa + nvim +PlugClean! +qa + nvim +PlugUpdate +qa echo -e "\033[32m ✔ Neovim now using nvimrc from this directory. \033[0m" echo -e "\033[32m ➤ Run ./install.sh again to exit development mode. \033[0m" + exit 0 } main $1