Vim Command re-install

Source: Internet
Author: User
Tags bz2

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

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.