Skip to content

Commit

Permalink
Merge pull request ma6174#9 from androidyue/master
Browse files Browse the repository at this point in the history
Make it available for Yum package management OSes(i.e.Fedora)
  • Loading branch information
ma6174 committed Sep 1, 2013
2 parents b179571 + 97cd2f0 commit 5e26750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ set rtp+=$GOROOT/misc/vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 显示相关
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set cul "高亮光标所在行
set cuc
set shortmess=atI " 启动的时候不显示那个援助乌干达儿童的提示
Expand Down
8 changes: 6 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools
if which apt-get >/dev/null; then
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools
else
sudo yum install -y gcc vim git ctags.i686 xclip astyle python-setuptools python-devel
fi
sudo easy_install -ZU autopep8 twisted
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
mv ~/vim ~/vim_old -f
Expand All @@ -12,6 +16,6 @@ git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
echo "ma6174正在努力为您安装bundle程序" > ma6174
echo "安装完毕将自动退出" >> ma6174
echo "请耐心等待" >> ma6174
vi ma6174 -c "BundleInstall" -c "q" -c "q"
vim ma6174 -c "BundleInstall" -c "q" -c "q"
rm ma6174
echo "安装完成"

0 comments on commit 5e26750

Please sign in to comment.