码迷,mamicode.com
首页 > 系统相关 > 详细

之前是手动安装,现在配置vim 智能提示采用脚本安装

时间:2016-05-19 13:07:03      阅读:405      评论:0      收藏:0      [点我收藏+]

标签:

 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 //下载

之前是手动安装,现在配置vim 智能提示采用脚本安装

标签:

原文地址:http://www.cnblogs.com/-210843013/p/5508255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!