forked from spf13/spf13-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
32 lines (23 loc) · 701 Bytes
/
bootstrap.sh
File metadata and controls
32 lines (23 loc) · 701 Bytes
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
27
28
29
30
31
32
#!/bin/env sh
endpath="$HOME/.spf13-vim-3"
warn() {
echo "$1" >&2
}
die() {
warn "$1"
exit 1
}
echo "thanks for installing spf13-vim\n"
# Backup existing .vim stuff
echo "backing up current vim config\n"
today=`date +%Y%m%d`
for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do [ -e $i ] && mv $i $i.$today; done
echo "cloning spf13-vim\n"
git clone --recursive -b 3.0 http://github.com/spf13/spf13-vim.git $endpath
mkdir -p $endpath/.vim/bundle
ln -s $endpath/.vimrc $HOME/.vimrc
ln -s $endpath/.vim $HOME/.vim
echo "Installing Vundle"
git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
echo "installing plugins using Vundle"
vim +BundleInstall! +BundleClean +q