{"id":2993,"date":"2012-05-08T23:07:14","date_gmt":"2012-05-08T23:07:14","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2993"},"modified":"2023-06-22T23:46:48","modified_gmt":"2023-06-22T23:46:48","slug":"how-to-install-vim-on-centos-5-8","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-vim-on-centos-5-8\/","title":{"rendered":"How to Install Vim on CentOS 5.8"},"content":{"rendered":"<p>Vim is an alternative to vi editor. Meaning, vim is a text editor that is upwards compatible to Vi. Vim can be used to edit all kinds of plain text. It is especially useful for editing programs. In this post, i will show how to install vim on linux CentOS 5.8 server. This steps may working on other linux distribution as well.<\/p>\n<p>Simply run this command to install vim :<\/p>\n<pre>\n[root@centos58 ~]# yum install vim-enhanced -y\n<\/pre>\n<p>Example :<\/p>\n<pre>\n[root@centos58 ~]# yum install vim-enhanced -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.oscc.org.my\n * extras: mirror.oscc.org.my\n * updates: mirror.oscc.org.my\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package vim-enhanced.i386 2:7.0.109-7.el5 set to be updated\n--> Processing Dependency: vim-common = 2:7.0.109-7.el5 for package: vim-enhanced\n--> Processing Dependency: libperl.so for package: vim-enhanced\n--> Processing Dependency: libgpm.so.1 for package: vim-enhanced\n--> Running transaction check\n---> Package gpm.i386 0:1.20.1-74.1 set to be updated\n---> Package perl.i386 4:5.8.8-38.el5 set to be updated\n---> Package vim-common.i386 2:7.0.109-7.el5 set to be updated\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n=====================================================================================================\n Package                   Arch              Version                         Repository         Size\n=====================================================================================================\nInstalling:\n vim-enhanced              i386              2:7.0.109-7.el5                 base              1.2 M\nInstalling for dependencies:\n gpm                       i386              1.20.1-74.1                     base              184 k\n perl                      i386              4:5.8.8-38.el5                  base               12 M\n vim-common                i386              2:7.0.109-7.el5                 base              6.4 M\n\nTransaction Summary\n=====================================================================================================\nInstall       4 Package(s)\nUpgrade       0 Package(s)\n\nTotal download size: 20 M\nDownloading Packages:\n(1\/4): gpm-1.20.1-74.1.i386.rpm                                               | 184 kB     00:01\n(2\/4): vim-enhanced-7.0.109-7.el5.i386.rpm                                    | 1.2 MB     00:11\n(3\/4): vim-common-7.0.109-7.el5.i386.rpm                                      | 6.4 MB     00:58\n(4\/4): perl-5.8.8-38.el5.i386.rpm                                             |  12 MB     01:57\n-----------------------------------------------------------------------------------------------------\nTotal                                                                106 kB\/s |  20 MB     03:09\nRunning rpm_check_debug\nRunning Transaction Test\nFinished Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing     : perl                                                                          1\/4\n  Installing     : vim-common                                                                    2\/4\n  Installing     : gpm                                                                           3\/4\n  Installing     : vim-enhanced                                                                  4\/4\n\nInstalled:\n  vim-enhanced.i386 2:7.0.109-7.el5\n\nDependency Installed:\n  gpm.i386 0:1.20.1-74.1       perl.i386 4:5.8.8-38.el5       vim-common.i386 2:7.0.109-7.el5\n\nComplete!\n<\/pre>\n<p>To use vim, type vim instead of vi :<\/p>\n<pre>\n[root@centos58 ~]# vim \/etc\/httpd\/conf\/httpd.conf\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Vim is an alternative to vi editor. Meaning, vim is a text editor that is upwards compatible to Vi. Vim can be used to edit all kinds of plain text&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1249,1536,1546,1884],"class_list":["post-2993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-5-8","tag-linux","tag-linux-utilities","tag-vim"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2993"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2993\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}