-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim_install.sh
More file actions
executable file
·65 lines (54 loc) · 1.5 KB
/
vim_install.sh
File metadata and controls
executable file
·65 lines (54 loc) · 1.5 KB
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
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
if [ -e ${HOME}/.vimrc ]
then
echo ".vimrc file already exists"
echo "Do your want to continue anyway?(yes/no)[no]"
read answer
if [[ $answer != "yes" ]]
then
exit 0
else
cp vimrc ${HOME}/.vimrc
fi
fi
cd $HOME
if [ -e .vim ]
then
echo ".vim directory already exists"
answer="no"
echo "Do your want to continue anyway?(yes/no)[no]"
read answer
if [[ $answer != "yes" ]]
then
exit 0
else
rm -rf .vim
fi
fi
vimBundleRoot="${HOME}/.vim/bundle"
# Install pathogen
mkdir -p .vim/autoload .vim/bundle
curl 'www.vim.org/scripts/download_script.php?src_id=19375'\
> .vim/autoload/pathogen.vim
cd ${vimBundleRoot}
# Install supertab
git clone https://github.com/ervandew/supertab.git
# Install syntastic
git clone https://github.com/scrooloose/syntastic.git
# Install vim-slime
git clone git://github.com/jpalardy/vim-slime.git
# Install vim-surround
git clone git://github.com/tpope/vim-surround.git
# Install vim-markdown
git clone https://github.com/plasticboy/vim-markdown.git
cd $HOME
# Noweb syntax
mkdir -p .vim/syntax
curl 'www.vim.org/scripts/download_script.php?src_id=13268'\
> .vim/syntax/noweb.vim
# vimSnipMate
curl 'www.vim.org/scripts/download_script.php?src_id=11006'\
> snipMate.zip
vimSnipMate="${vimBundleRoot}/snipMate"
unzip snipMate.zip -d ${vimSnipMate}
rm snipMate.zip