-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·60 lines (49 loc) · 1.69 KB
/
setup.sh
File metadata and controls
executable file
·60 lines (49 loc) · 1.69 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
echo "Welcome to the vim config Setup"
echo $HOME
# Create .vimrc file and add the sourcing to config.vim
if [ -e "$HOME/.vimrc" ];then
echo ".vimrc already exists! Please check on your own if you want to replace it or not!"
else
echo "so ~/.vim/vim-env/config.vim" >> $HOME/.vimrc
echo ".vimrc file was created and sourcing to config.vim was added"
fi
# Create the .vim folder if not existing yet
if [ -e "$HOME/.vim/" ];then
echo ".vim folder already exists!"
else
mkdir $HOME/.vim/
echo ".vim folder was created!"
fi
# Create the colors folder if not existing yet
if [ -e "$HOME/.vim/colors/" ];then
echo "Colors folder already exists!"
else
mkdir $HOME/.vim/colors/
echo "Colors folder was created!"
fi
# Install wget
sudo apt-get install wget
# Download vim-atom-dark-256 theme
if [ -e "$HOME/.vim/colors/atom-dark-256.vim" ];then
echo "atom-dark-256 theme already downloaded before!"
else
wget https://raw.githubusercontent.com/gosukiwi/vim-atom-dark/master/colors/atom-dark-256.vim -O $HOME/.vim/colors/atom-dark-256.vim
echo "atom dark 256 theme was downloaded now!"
fi
if [ -e "$HOME/.vim/colors/atom-dark.vim" ];then
echo "atom-dark theme already downloaded before!"
else
wget https://raw.githubusercontent.com/gosukiwi/vim-atom-dark/master/colors/atom-dark.vim -O $HOME/.vim/colors/atom-dark.vim
echo "atom dark theme was downloaded now!"
fi
# Creates a link to the snippets
if [ -e "$HOME/.vim/snippets/" ];then
echo "Snippets folder already exists!"
else
ln -s $HOME/.vim/vim-env/snippets ~/.vim/
echo "Link to snippet folder was created!"
fi
# Install Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Install all plugins
vim +PluginInstall +qall