FREQUENTLY ASKED QUESTIONS (Linux)
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)
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)
0 comments:
Post a Comment