Author:headsen Chen
Date:2018-05-11 09:50:23
[[Email protected] ~]# which vim/usr/bin/Vim[[email protected]~]# rpm-qf/usr/bin/Vimvim-enhanced-7.4. the-1. El7.x86_64[[email protected]~] #rm-F/usr/bin/vim#-------------------> Delete vim command, simulate command error LS-l/usr/bin/vim
#开始重新下载安装vim命令:
wget ftp: //ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2 tar fx vim-7.4.tar.bz2 CD vim74/ Yum-y Install Ncurses-devel ncurses #-----------------> The library will be installed first, otherwise the following compilation would error!!!!!!!!!!!!!! ./configure-- prefix=/usr/local/ vim74 make make install vim/usr/local/vim74/bin/vim/etc/profile#------------------> Last line add: path= $PATH:/usr/local/vim74/bin/ Vim;export
# You can also use aliases:
# alias Vim = '/usr/local/vim74/bin/vim ' source/etc/ Profile echo $PATH vim vim/etc/ Profile
Vim Command re-install