Skip to content

Commit

Permalink
在centos上不用卸载vi和vim直接编译安装vim
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Feb 22, 2020
1 parent 3aac911 commit a24e99e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ function compile_vim_on_debian()
# 在centos上源代码安装vim
function compile_vim_on_centos()
{
sudo rm -rf /usr/bin/vi
sudo rm -rf /usr/bin/vim*
sudo rm -rf /usr/local/bin/vim*
sudo rm -rf /usr/share/vim/vim*
sudo rm -rf /usr/local/share/vim/vim*
rm -rf ~/vim81

sudo yum install -y ruby ruby-devel lua lua-devel luajit \
Expand Down Expand Up @@ -319,7 +314,6 @@ function install_prepare_software_on_centos()
else
sudo yum install -y ctags automake gcc gcc-c++ kernel-devel cmake python-devel python3-devel fontconfig ack git
compile_vim_on_centos
sudo ln -s /usr/bin/vim /usr/bin/vi
fi
}

Expand Down

0 comments on commit a24e99e

Please sign in to comment.