-
Notifications
You must be signed in to change notification settings - Fork 1
/
setupVim.sh
executable file
·52 lines (41 loc) · 1.8 KB
/
setupVim.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/bash
DEFAULT="\e[0m"
GREEN="\e[01;92m"
YELLOW="\e[01;93m"
INFO="[$YELLOW*$DEFAULT]"
OK="[$GREEN+$DEFAULT]"
# Install Vundle
echo -e "$INFO ${YELLOW}Installing Vundle Plugin Manager$DEFAULT"
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo -e "$OK ${GREEN}Vundle installed${DEFAULT}"
# Install Vundle
echo -e "$INFO ${YELLOW}Installing Vundle Plugin Manager$DEFAULT"
git clone https://github.com/hashivim/vim-terraform.git ~/.vim/bundle/vim-terraform
echo -e "$OK ${GREEN}Vundle installed${DEFAULT}"
# Install rupza colorscheme
echo -e "$INFO ${YELLOW}Installing rupza colorscheme file$DEFAULT"
git clone https://github.com/felipesousa/rupza ~/.vim/colors/rupza
cp ~/.vim/colors/rupza/colors/rupza.vim ~/.vim/colors/rupza.vim
echo -e "$OK ${GREEN}rupza colorscheme installed${DEFAULT}"
# Install Monokai colorscheme
echo -e "$INFO ${YELLOW}Installing Monokai colorscheme file$DEFAULT"
git clone https://github.com/tomasr/molokai ~/.vim/colors/molokai
cp ~/.vim/colors/molokai/colors/molokai.vim ~/.vim/colors/molokai.vim
echo -e "$OK ${GREEN}Monokai installed${DEFAULT}"
# Setup YouCompleteMe plugin
echo -e "$INFO ${YELLOW}Installing completion plugin (YouCompleteMe)$DEFAULT"
git clone https://github.com/Valloric/YouCompleteMe ~/.vim/bundle/YouCompleteMe
git -C ~/.vim/bundle/YouCompleteMe submodule update --init --recursive
~/.vim/bundle/YouCompleteMe/install.py
echo -e "$OK ${GREEN}YouCompleteMe installed${DEFAULT}"
# Install .vimrc file
echo -e "$INFO ${YELLOW}Installing .vimrc file$DEFAULT"
if [[ -e ~/.vimrc ]]; then
mv ~/.vimrc ~/.vimrc."$(date +%Y-%m-%d_%H-%M-%S)"
fi
cp .vimrc ~/.vimrc
echo -e "$OK ${GREEN}.vimrc installed${DEFAULT}"
# Install Plugins
echo -e "$INFO ${YELLOW}Installing plugins$DEFAULT"
vim +PluginInstall +qall
echo -e "$OK ${GREEN}Plugins installed${DEFAULT}"