1 #!/bin/bash
2
3 echo "Installation will take some time, please wait patiently until the installation is complete ^_^"
4 if which apt-get >/dev/null; then
5 sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git
6 elif which yum >/dev/null; then
7 sudo yum install -y gcc vim git ctags xclip astyle python-setuptools python-devel
8 fi
9
10 ##Add HomeBrew support on Mac OS
11 if which brew >/dev/null;then
12 echo "You are using HomeBrew tool"
13 brew install vim ctags git astyle
14 fi
15
16 sudo easy_install -ZU autopep8
17 sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
18 mv -f ~/vim ~/vim_old
19 cd ~/ && git clone https://github.com/ma6174/vim.git
20 mv -f ~/.vim ~/.vim_old
21 mv -f ~/vim ~/.vim
22 mv -f ~/.vimrc ~/.vimrc_old
23 mv -f ~/.vim/.vimrc ~/
24 git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
25 echo "ma6174 is working hard to install the bundle program for you" > ma6174
26 echo "Installation will automatically exit" >> ma6174
27 echo "Please be patient" >> ma6174
28 vim ma6174 -c "BundleInstall" -c "q" -c "q"
29 rm ma6174
30 echo "Installation completed"
Wget-qo-http://raw.github.com/ma6174/vim/master/setup.sh | sh-x//Download
Prior to manual installation, now configure VIM Smart tips with script installation