知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

CentOS 5.4安装高亮vim编辑工具

发布时间:2014-09-05 14:32:06作者:知识屋

CentOS 5.4安装高亮vim编辑工具
 
[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:00
base      | 1.1 kB     00:00
extras    | 2.1 kB     00:00
updates   | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vim-X11.i386 2:7.0.109-7.2.el5 set to be updated
---> Package vim-common.i386 2:7.0.109-7.2.el5 set to be updated
---> Package vim-enhanced.i386 2:7.0.109-7.2.el5 set to be updated
---> Package vim-minimal.i386 2:7.0.109-7.2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
 Package         Arch          Version         Repository           Size
================================================================================
Installing:
 vim-X11        i386       2:7.0.109-7.2.el5             base        1.4 M
 vim-common     i386       2:7.0.109-7.2.el5             base        6.4 M
 vim-enhanced   i386       2:7.0.109-7.2.el5             base        1.2 M
Updating:
 vim-minimal   i386        2:7.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     00:00
(2/4): vim-enhanced-7.0.109-7.2.el5.i386.rpm        | 1.2 MB     00:06
(3/4): vim-X11-7.0.109-7.2.el5.i386.rpm             | 1.4 MB     00:09
(4/4): vim-common-7.0.109-7.2.el5.i386.rpm          | 6.4 MB     00:56
-------------------------------------------------------------------------------
Total            130 kB/s | 9.4 MB     01:13
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 2:7.0.109-7.2.el5     vim-common.i386 2:7.0.109-7.2.el5     vim-enhanced.i386 2:7.0.109-7.2.el5
Updated:
  vim-minimal.i386 2:7.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 root 12 Jan 18 01:22 /bin/vi -> /usr/bin/vim
 
如果需要更高深地需求,请直接修改/etc/vimrc 配置文件即可。
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜