The steps for installing the highlighted vim editing tool in CentOS 5.4 are very simple. For Linux experts, please ignore this article. Just a few lines of command !!
[Root @ localhost ~] # Yum install vim -*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Addons: mirrors.ta139.com
* Base: mirrors.ta139.com
* Extras: mirrors.ta139.com
* Updates: mirrors.ta139.com
Addons | 1.9 kB: 00
Base | 1.1 kB
Extras | 2.1 kB: 00
Updates | 1.9 kB: 00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vim-X11.i386. 0.109-7.2.el5 set to be updated
---> Package vim-common.i386. 0.109-7.2.el5 set to be updated
---> Package vim-enhanced.i386. 0.109-7.2.el5 set to be updated
---> Package vim-minimal.i386. 0.109-7.2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================== ==========================================================
Package Arch Version Repository Size
========================================================== ==========================================================
Installing:
Vim-X11 i386. 0.109-7.2.el5 base 1.4 M
Vim-common i386. 0.109-7.2.el5 base 6.4 M
Vim-enhanced i386. 0.109-7.2.el5 base 1.2 M
Updating:
Vim-minimal i386. 0.109-7.2.el5 base 310 k
Transaction Summary
========================================================== ========================================================
Install 3 Package (s)
Update 1 Package (s)
Remove 0 Package (s)
Total download size: 9.4 M
Is this OK [y/N]: y
Downloading Packages:
(1/4): vim-minimal-7.0.109-7.2.el5.i386.rpm | 310 kB
(2/4): vim-enhanced-7.0.109-7.2.el5.i386.rpm | 1.2 MB
(3/4): vim-X11-7.0.109-7.2.el5.i386.rpm | 1.4 MB
(4/4): vim-common-7.0.109-7.2.el5.i386.rpm | 6.4 MB
-------------------------------------------------------------------------------
Total 130 kB/s | 9.4 MB
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: vim-common 1/5
Installing: vim-X11 2/5
Installing: vim-enhanced 3/5
Updating: vim-minimal 4/5
Cleanup: vim-minimal 5/5
Installed:
Vim-X11.i386. 0.109-7.2.el5 vim-common.i386. 0.109-7.2.el5 vim-enhanced.i386. 0.109-7.2.el5
Updated:
Vim-minimal.i386. 0.109-7.2.el5
Complete!
[Root @ localhost ~] # Which vi
/Bin/vi
[Root @ localhost ~] # Which vim
/Usr/bin/vim
[Root @ localhost ~] # Rm/bin/vi
Rm: remove regular file '/bin/vi '? Y
[Root @ localhost ~] # Ln-s/usr/bin/vim/bin/vi
[Root @ localhost ~] # Which vi
/Bin/vi
[Root @ localhost ~] # Ls-l/bin/vi
Lrwxrwxrwx 1 root 12 Jan 18 0:22/bin/vi->/usr/bin/
If you need more in-depth requirements, directly modify the/etc/vimrc configuration file.