-
Notifications
You must be signed in to change notification settings - Fork 7
/
go
47 lines (38 loc) · 1.46 KB
/
go
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
#!/bin/bash
if [ ! -d ~/.vim/ ]; then
echo "cloning https://github.com/aaronzirbes/vim-files.git to ~/.vim"
git clone https://github.com/aaronzirbes/vim-files.git ~/.vim
else
echo "~/.vim/ already exists. skipping."
fi
if [ ! -d ~/.vim/bundle/vundle ]; then
echo "cloning https://github.com/gmarik/vundle.git to ~/.vim/bundle/vundle"
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
else
echo "~/.vim/bundle/vundle already exists. skipping."
fi
if [ ! -d ~/.config ]; then
mkdir -p ~/.config
fi
if [ ! -e ~/.config/nvim ]; then
echo "symlinking ~/.vim to ~/.config/nvim"
ln -s ~/.vim ~/.config/nvim
fi
if [ ! -e ~/.vimrc ] && [ ! -e ~/.ctags ] && [ ! -e ~/.gvimrc ]; then
echo "symlinking ~/.vimrc ~/.ctags ~/.gvimrc"
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/ctags ~/.ctags
ln -s ~/.vim/gvimrc ~/.gvimrc
else
echo "one or more of ~/.vimrc ~/.ctags ~/.gvimrc exists, not creating symlinks:"
echo " ln -s ~/.vim/vimrc ~/.vimrc"
echo " ln -s ~/.vim/ctags ~/.ctags"
echo " ln -s ~/.vim/gvimrc ~/.gvimrc"
fi
echo "Disabling Tomorrow-Night theme until the bundle is installed"
sed -i -e 's/colorscheme Tomorrow-Night/"colorscheme Tomorrow-Night/' ~/.vimrc
echo "calling BundleInstall using vundle plugin"
vim +BundleInstall +qall
echo "Re-Enabling Tomorrow-Night theme until the bundle is installed"
sed -i -e 's/"colorscheme Tomorrow-Night/colorscheme Tomorrow-Night/' ~/.vimrc
echo "Done!"