-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathsetup
executable file
·47 lines (40 loc) · 851 Bytes
/
setup
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
#!/usr/bin/env bash
#
# setup My 12 Year-Old (Neo)Vim Configuration
info () {
printf " [ \033[00;34m..\033[0m ] $1\n"
}
success () {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}
fail () {
printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
echo ''
exit
}
echo ''
info 'Setting up My 12 Year-Old (Neo)Vim Configuration'
info '============================================='
echo ''
info 'Setting up Symlinks'
info '--------------'
if test $(which rake)
then
rake vim:link
else
fail 'Install Ruby and Rake to continue'
fi
info 'Installing plugins'
info '-------------------------------------------------'
if test $(which nvim)
then
nvim -v +PluginInstall +qall
else
if test $(which vim)
then
vim +PluginInstall +qall
else
fail 'nvim or vim not found in path.'
fi
fi
success 'Setup complete. Run vim and enjoy'