summaryrefslogtreecommitdiff
path: root/.vim/pack/mvertes/install.sh
blob: 37b17847f069c90665296ffc8d7175a7df1b56b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -e

plugins='
git@github.com:mvertes/vimki
git@github.com:fatih/vim-go
git@github.com:othree/xml.vim
git@github.com:junegunn/fzf.vim
git@github.com:rust-lang/rust.vim
git@github.com:preservim/nerdtree
git@github.com:tpope/vim-fugitive
'
ht='test -d doc && vim -c "helptags doc" -c "q"'

mkdir -p start
cd start
for p in $plugins
do
	n=${p##*/}
	if [ -d "$n" ]; then
		echo "update $p"
		(cd $n && git pull && eval "$ht")
	else
		echo "init $p"
		(git clone $p && cd "$n" && eval "$ht")
	fi
done