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