1 #!/bin/bash 2 3 echo "安装将花费一定时间,请耐心等待直到安装完成^_^" 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正在努力为您安装bundle程序" > ma6174 26 echo "安装完毕将自动退出" >> ma6174 27 echo "请耐心等待" >> ma6174 28 vim ma6174 -c "BundleInstall" -c "q" -c "q" 29 rm ma6174 30 echo "安装完成"
wget -qo- http://raw.github.com/ma6174/vim/master/setup.sh | sh -x //下载