Skip to content

Commit 9304689

Browse files
committed
Automate plugin install and update
1 parent 988aee1 commit 9304689

2 files changed

Lines changed: 14 additions & 18 deletions

File tree

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ or wget
122122
$ wget https://git.io/vwYYX -O - | sh
123123
```
124124

125-
You will need to exit Neovim manually with `:qa` after each step.
126-
127125
### Manual Install
128126

129127
1. Install [vim-plug].
@@ -166,12 +164,10 @@ You will need to exit Neovim manually with `:qa` after each step.
166164
3. Run
167165

168166
```
169-
$ nvim -c PlugInstall
170-
$ NVIMRC_INSTALL=true nvim -c PlugInstall
167+
$ nvim +PlugInstall +qa
168+
$ NVIMRC_INSTALL=true nvim +PlugInstall +qa
171169
```
172170

173-
You will need to exit Neovim manually with `:qa` after each step.
174-
175171
### Updating
176172

177173
Updating is handled via the normal [vim-plug commands].
@@ -186,10 +182,10 @@ function nvimupg () {
186182
return 1
187183
fi
188184

189-
nvim -c PlugUpgrade
190-
nvim -c PlugUpdate
191-
nvim -c PlugInstall
192-
nvim -c PlugClean!
185+
nvim +PlugUpgrade +qa
186+
nvim +PlugUpdate +qa
187+
nvim +PlugInstall +qa
188+
nvim +PlugClean! +qa
193189
}
194190
```
195191

install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ EOF
126126

127127
echo -e " ➤ Run ❰ PlugInstall ❱ \033[0m"
128128

129-
nvim -c PlugClean!
130-
nvim -c PlugInstall
131-
NVIMRC_INSTALL=true nvim -c PlugInstall
132-
nvim -c PlugClean!
129+
nvim +PlugClean! +qa
130+
nvim +PlugInstall +qa
131+
NVIMRC_INSTALL=true nvim +PlugInstall +qa
132+
nvim +PlugClean! +qa
133133

134134
echo
135135
echo -e "\033[32m ✔ Completed ❰ PlugInstall ❱ \033[0m"
@@ -163,10 +163,10 @@ dev_mode () {
163163

164164
sed -i -e "s|${f_gstr}|${r_gstr}|g" $nvim_root/ginit.vim
165165

166-
nvim -c PlugClean!
167-
nvim -c PlugInstall
168-
nvim -c PlugClean!
169-
nvim -c PlugUpdate
166+
nvim +PlugClean! +qa
167+
nvim +PlugInstall +qa
168+
nvim +PlugClean! +qa
169+
nvim +PlugUpdate +qa
170170

171171
echo -e "\033[32m ✔ Neovim now using nvimrc from this directory. \033[0m"
172172
echo -e "\033[32m ➤ Run ./install.sh again to exit development mode. \033[0m"

0 commit comments

Comments
 (0)