1 #!/bin/bash
2 echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
3 if which apt-get >/dev/null; then
4 sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git
5 elif which yum >/dev/null; then
6 sudo yum install -y gcc vim git ctags xclip astyle python-setuptools python-devel
7 fi
8
9 ##Add HomeBrew support on Mac OS
10 if which brew >/dev/null;then
11 echo "You are using HomeBrew tool"
12 brew install vim ctags git astyle
13 fi
14
15 sudo easy_install -ZU autopep8
16 sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
17 mv -f ~/vim ~/vim_old
18 cd ~/ && git clone
https://github.com/ma6174/vim.git 19 mv -f ~/.vim ~/.vim_old
20 mv -f ~/vim ~/.vim
21 mv -f ~/.vimrc ~/.vimrc_old
22 mv -f ~/.vim/.vimrc ~/
23 git clone
https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
24 echo "ma6174 正在努力为您安装 bundle 程序" > ma6174
25 echo "安装完毕将自动退出" >> ma6174
26 echo "请耐心等待" >> ma6174
27 vim ma6174 -c "BundleInstall" -c "q" -c "q"
28 rm ma6174
29 echo "安装完成"
@ git hub 上的呀,我一般就保存下来,自己用了