forked from zaiste/vimified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
55 lines (43 loc) · 1.78 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
48
49
50
51
52
53
54
#!/usr/env sh
create_symlinks () {
if [ ! -f ~/.vim ]; then
echo "Now, we will create ~/.vim and ~/.vimrc files to configure Vim."
ln -sfn vimified ~/.vim
fi
if [ ! -f ~/.vimrc ]; then
ln -sfn vimified/vimrc ~/.vimrc
fi
}
echo "Welcome friend!"
echo "You are about to be vimified. Ready? Let us do the stuff for you."
if [ ! -d "vimified" ]; then
echo "As we can't find Vimified in the current directory, we will create it."
git clone git://github.com/zaiste/vimified.git
create_symlinks
cd vimified
else
echo "Seems like you already are one of ours, so let's update Vimified to be as awesome as possible."
cd vimified
git pull origin master
create_symlinks
fi
if [ ! -d "bundle" ]; then
echo "Now, we will create a separate directory to store the bundles Vim will use."
mkdir bundle
mkdir -p tmp/backup tmp/swap tmp/undo
fi
if [ ! -d "bundle/vundle" ]; then
echo "Then, we install Vundle (https://github.com/gmarik/vundle)."
git clone https://github.com/gmarik/vundle.git bundle/vundle
fi
if [ ! -f local.vimrc ]; then
echo "Let's create a 'local.vimrc' file so you have some bundles by default."
echo "let g:vimified_packages = ['general', 'fancy', 'css', 'js', 'os', 'html', 'coding', 'color']" > 'local.vimrc'
fi
echo "There you are! Welcome in our world."
echo "From now, do not hesitate to ask for help to the people behind Vimfied: https://github.com/zaiste/vimified/graphs/contributors"
echo "We welcome any bros/sistas who want to contribute: https://github.com/zaiste/vimified#call-for-help"
echo "Report any issue/need: https://github.com/zaiste/vimified/issues"
echo "At last, and before all, read the documentation: http://zaiste.github.com/vimified/"
echo "Enjoy!"
vim +BundleInstall +qall 2>/dev/null