Prior to manual installation, now configure VIM Smart tips with script installation

Source: Internet
Author: User
Tags git clone


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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.