CentOS6.6 under Installation vim7.4

Source: Internet
Author: User

Recently in the study of Linux, bought this vim practical skills, while watching while practicing the process found that some commands in my environment (centos6.6_64 bit) does not support.

For example, in the case of a book, when the cursor is positioned at the end of a word, you need to delete the word. can be removed in 3 ways.

The first kind of reverse delete: Press "dbx", explain: "DB" command delete from the beginning of the cursor to the beginning of the word content, but will leave the last character "H", and then press "X" key can delete this disruptive character. (The Command environment support)

The second positive delete: Press "BDW", explain: first with "B" command bar cursor to the beginning of the word, then you can use the "DW" command to delete the entire word. (The Command environment support)

The third way to delete the whole word: Press "Daw", explain: literally meaning well understood, "delete a word". However, an order of this bull is not supported in my environment.

With the Yum list installed | grep vim "Discovery system comes with a minimal,

And I configured the display line number and highlight. The format shown in this version is actually the case.

Too ugly ....

So, decided to delete this version of Vim. "Yum-y Remove vim*". Then go to http://www.vim.org/sources.php official website to download the latest version of the source code.

The download list is : vim-7.4.tar.bz2 vim-7.2-extra.tar.gz vim-7.2-lang.tar.gz

Upload to server, unzip.

Tar jxvf vim-7.4.tar.bz2tar zxvf vim-7.2-extra.tar.gztar zxvf vim-7.2-lang.tar.gzmv vim72 Vim74yum Install NCURSES-DEVELCD vim74/src./configure--enable-multibyte \--with-features=huge \--disable-selinuxmakemake Install

Installation is complete. Enter "Vim--version", no accident has been successfully upgraded to vim7.4.

Try the new version of Vim.

"Vim ~/.VIMRC"

So fresh! Re-test the above said "Daw" command, OK, can run. Get!

Install new version found VIM alias VI command is gone. I can reset it myself.

echo "Alias vi= ' Vim '" >>/etc/profilesource/etc/profile






CentOS6.6 under Installation vim7.4

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.