How to install vim in fedora centos redhat

Q: How to install vim editor in Fedora/CentOS/Redhat? (RPM distributions)

Install VIM editor
[root@server ~]# yum -y install vim-enhanced

Syntax to edit a file using vim
#vim <file name>
Eg: [root@server ~]# vim /etc/dhcp/dhcpd.conf

Configure VIM editor
VIM configuration file is located in "/etc/vimrc". Any changes to this configuration file is applicable for all users. 

Few usefull parameters to add to "/etc/vimrc"
set backup                       #(keep a backup of the editing file)
set backupdir=~/backup    #(specify backup directory)
set history=100                 #(keep 100 search histories)
set number                       #(set number for each line in the file)

Was this helpfull ?


Related Posts Plugin for WordPress, Blogger...

Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons