-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·51 lines (37 loc) · 1005 Bytes
/
setup.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
48
49
50
51
#!/bin/sh
# AUTHOR: Renan Cakirek <mail at ren.io>
os=`uname`
echo " - Copying the new .vimrc file to ~/"
cp -f .vimrc ~/
echo " - Creating ~/.vim"
mkdir -p ~/.vim
echo " - Creating ~/.vim/autoload"
mkdir -p ~/.vim/autoload
echo " - Creating ~/.vim/bundle"
mkdir -p ~/.vim/bundle
echo " - Creating ~/.vim/syntax"
mkdir -p ~/.vim/syntax
echo " - Installing new color scheme..."
mkdir -p ~/.vim/colors
cp -rf ./hero.vim ~/.vim/colors/
echo
echo " - Downloading plugins..."
echo
if [ "$os" == "Linux" ]
then
SCRIPTPATH=`readlink -n $0`
fi
if [ "$os" == "Darwin" ]
then
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
fi
cd ~/.vim/bundle/
while read line; do git clone $line; done < $SCRIPTPATH/vim_hero_plugins
echo
echo " - Installing pathogen..."
cp -f ~/.vim/bundle/vim-pathogen/autoload/pathogen.vim ~/.vim/autoload/
# Special action for sparkup plugin
mv -f ~/.vim/bundle/sparkup/vim/ftplugin ~/.vim/
echo
echo "Your new Vim should be working now. Have fun."
echo