-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
48 lines (39 loc) · 1.37 KB
/
install.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
INSTALL_TO=${HOME}
warn() {
echo "$1" >&2
}
die() {
warn "$1"
exit 1
}
[ -e "$INSTALL_TO/vimrc" ] && die "$INSTALL_TO/vimrc already exists."
[ -e "~/.vim" ] && die "~/.vim already exists."
[ -e "~/.vimrc" ] && die "~/.vimrc already exists."
cd "$INSTALL_TO"
git clone git://github.com/balintk/vimrc.git
mkdir vimrc/vim/bundle
cd vimrc/vim/bundle
# Download vim plugin bundles
# Jellybeans color scheme
git clone https://github.com/nanotech/jellybeans.vim.git jellybeans
# Solarized color scheme
git clone https://github.com/altercation/vim-colors-solarized.git solarized
# Tomorrow color scheme
git clone https://github.com/chriskempson/vim-tomorrow-theme.git tomorrow
# Powerline
git clone https://github.com/Lokaltog/vim-powerline.git
# Syntastic
git clone https://github.com/scrooloose/syntastic.git
# Taglist
git clone https://github.com/vim-scripts/taglist.vim.git taglist
# DBGp Remote Debugger Interface
git clone https://github.com/jsoriano/vim-dbgp.git
# Symlink ~/.vim and ~/.vimrc
cd ~
ln -s "$INSTALL_TO/vimrc/vimrc" .vimrc
ln -s "$INSTALL_TO/vimrc/vim" .vim
echo "-------------------------------------------------------------------------------"
echo "Installed and configured .vim, have fun!"
echo "If you want to push code to the balintk/vimrc repository, run this command:"
echo "cd ~/vimrc; git remote set-url origin [email protected]:balintk/vimrc.git"