-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvim-bootstrap
executable file
·35 lines (27 loc) · 1.01 KB
/
vim-bootstrap
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
#!/bin/bash
# Text Reset
RESET='\e[0m'
BLINK='\e[5m'
# Regular Colors
BLACK='\e[0;30m'
RED='\e[0;31m'
GREEN='\e[0;32m'
YELLOW='\e[0;33m'
BLUE='\e[0;34m'
PURPLE='\e[0;35m'
CYAN='\e[0;36m'
WHITE='\e[0;37m'
clear
echo -e "${CYAN}=================================================================${RESET}"
echo -e "${GREEN} VIM Boostrap Installer!! ${RESET}"
echo -e "${CYAN}=================================================================${RESET}"
echo -e "${GREEN}Insalling VIM Boostrap...${RESET}"
curl 'https://vim-bootstrap.com/generate.vim' --data 'langs=c&langs=html&langs=javascript&langs=perl&langs=php&langs=python&langs=ruby&editor=vim' >~/.vimrc
vim +PlugInstall +qall
sudo ln -s ~/.vim /root/.vim
sudo ln -s ~/.vimrc /root/.vimrc
echo -e "${GREEN}Setting up color prompt...${RESET}"
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' ~/.bashrc
sudo sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' /root/.bashrc
source ~/.bashrc
echo -e "${GREEN}All done!${RESET}"