{"id":1936,"date":"2012-02-11T17:35:26","date_gmt":"2012-02-11T09:35:26","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1936"},"modified":"2023-04-28T09:49:56","modified_gmt":"2023-04-28T09:49:56","slug":"how-to-install-vim-on-rhel-6","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-vim-on-rhel-6\/","title":{"rendered":"How to Install vim on RHEL 6"},"content":{"rendered":"<p>In this post, i will show on how to install vim on Redhat Enterprise Linux 6 (RHEL 6) Linux server. Vim stands for &#8216;Vi Improved&#8217;. Vi is one of the most popular and powerful editors in the Unix systems. Vim is an advanced text editor, alternative editor for VI and it&#8217;s highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. If your RHEL 6 server doesn&#8217;t have vim installed, you will get the following error :<\/p>\n<ol>\n<pre class=\"code\">\n[root@rhel6 ~]# vim \/etc\/httpd\/conf\/httpd.conf\n-bash: \/usr\/bin\/vim: No such file or directory\n<\/pre>\n<\/ol>\n<p>Assumed that you have set up local yum repository using your DVDrom. If you haven&#8217;t set up the local yum repository, please proceed to this steps :<br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-local-yum-repository-from-cd-romdvd-rom-image-on-rhel-6\/\">How to Setup Local Yum Repository from CD-ROM\/DVD-ROM image on RHEL 6<\/a><\/p>\n<p>Simply run this command to install vim on RHEL 6 :<\/p>\n<ol>\n<pre class=\"code\">\n[root@rhel6 ~]# yum install vim-enhanced -y\nLoaded plugins: rhnplugin\nThis system is not registered with RHN.\nRHN support will be disabled.\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package vim-enhanced.i686 2:7.2.411-1.4.el6 set to be updated\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package               Arch          Version                    Repository                     Size\n====================================================================================================\nInstalling:\n vim-enhanced          i686          2:7.2.411-1.4.el6          DVD-RHEL6-Repository          839 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\nUpgrade       0 Package(s)\n\nTotal download size: 839 k\nInstalled size: 1.8 M\nDownloading Packages:\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing     : 2:vim-enhanced-7.2.411-1.4.el6.i686                                          1\/1\n\nInstalled:\n  vim-enhanced.i686 2:7.2.411-1.4.el6\n\nComplete!\n<\/pre>\n<\/ol>\n<p>You can check the details of this vim-enhanced package using this command :<\/p>\n<ol>\n<pre class=\"code\">\n[root@rhel6 ~]# yum info vim-enhanced\nLoaded plugins: rhnplugin\nThis system is not registered with RHN.\nRHN support will be disabled.\nInstalled Packages\nName       : vim-enhanced\nArch       : i686\nEpoch      : 2\nVersion    : 7.2.411\nRelease    : 1.4.el6\nSize       : 1.8 M\nRepo       : installed\nFrom repo  : DVD-RHEL6-Repository\nSummary    : A version of the VIM editor which includes recent enhancements\nURL        : http:\/\/www.vim.org\/\nLicense    : Vim and GPLv2+ and BSD and LGPLv2+ and Open Publication\nDescription: VIM (VIsual editor iMproved) is an updated and improved version of the\n           : vi editor.  Vi was the first real screen-based editor for UNIX, and is\n           : still very popular.  VIM improves on vi by adding new features:\n           : multiple windows, multi-level undo, block highlighting and more.  The\n           : vim-enhanced package contains a version of VIM with extra, recently\n           : introduced features like Python and Perl interpreters.\n           :\n           : Install the vim-enhanced package if you'd like to use a version of the\n           : VIM editor which includes recently added enhancements like\n           : interpreters for the Python and Perl scripting languages.  You'll also\n           : need to install the vim-common package.\n<\/pre>\n<\/ol>\n<p>Note that you must be the root\/administrator to install the package.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will show on how to install vim on Redhat Enterprise Linux 6 (RHEL 6) Linux server. Vim stands for &#8216;Vi Improved&#8217;. Vi is one of the&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1499,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2058],"tags":[1536,1546,1713,1715,1884],"class_list":["post-1936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rhel","tag-linux","tag-linux-utilities","tag-rhel","tag-rhel-6","tag-vim"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1936","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=1936"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1936\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1499"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}