-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·140 lines (136 loc) · 4.02 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
echo Installing TheVimIDE
echo Firstly pull all submodules:
git submodule update --init --recursive
git submodule update --recursive
echo "Do you want to delete old vim-files? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) -o \
\( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
rm -f ~/.vimrc
sudo rm -rf ~/.vim/
mkdir ~/.vim/
echo The old vim files have been deleted!
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
echo move current .vim folder to vim_old
sudo mv ~/.vim/ ~/vim_old
echo move current .vimrc to vimrc_old
mv ~/.vimrc ~/vimrc_old
mkdir ~/.vim/
break
else
echo Input was not correct
echo "Do you want to delete old vim-files? [y/n]"
fi
done
echo Initialize vim-plug pluginmanager
cp -f ./vim-plug/plug.vim ./autoload/
echo Copy/Rename TheVimIDE to ~/.vim/
cp -a ./* ~/.vim/
echo Copy .vimrc to ~/.vimrc
cp ./.vimrc ~/.vimrc
rm -f ~/.vim/.vimrc
echo Copy .tern-config to ~/.tern-config
cp ./.tern-config ~/.tern-config
rm -f ~/.vim/.tern-config
echo "Do you want to install Java autocompletion? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) \
-o \( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
./build/java_install.sh vim
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
break
else
echo Input was not correct
echo "Do you want to install Java autocompletion? [y/n]"
fi
done
echo "Do you want to install JavaScript autocompletion? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) \
-o \( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
./build/javascript_tern_install.sh vim
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
break
else
echo Input was not correct
echo "Do you want to install JavaScript autocompletion? [y/n]"
fi
done
echo "Do you want to install Python autocompletion? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) \
-o \( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
./build/python_jedi_install.sh
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
break
else
echo Input was not correct
echo "Do you want to install Python autocompletion? [y/n]"
fi
done
echo "Do you want to install Ruby autocompletion? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) \
-o \( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
./build/ruby_solargraph_install.sh
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
break
else
echo Input was not correct
echo "Do you want to install Ruby autocompletion? [y/n]"
fi
done
echo "Do you want to install Vim-Tagbar" \
"(shows a function bar at the left side)? [y/n]"
while [ \( "$ask" != "y" \) -o \( "$ask" != "n" \) -o \( "$ask" != "Y" \) \
-o \( "$ask" != "N" \) ]
do
read -r ask
if [ \( $ask == "y" \) -o \( $ask == "Y" \) ];
then
./build/tagbar_ctags_install.sh vim
break
fi
if [ \( $ask == "n" \) -o \( $ask == "N" \) ];
then
break
else
echo Input was not correct
echo "Do you want to install Vim-Tagbar " \
"(shows a function bar at the left side)? [y/n]"
fi
done
cd ~/.vim/bundle/LanguageClient-neovim/
./install.sh
echo Finished!
exit 0