Skip to content
Tags

how to set number permanently in vi editor

July 13, 2010

It is very easy to put numbers on every line in file while opening it with VI EDITOR

First Option

Step 1 : create a file in your Root Directory with name .exrc

[root@root ~]# cd /root

[root@root ~]# cd vi .exrc

set number
:wq

Step 2 : Magic Begins

[root@root ~]# now try to open any file through vi u see defaults numbers on each line

SECOND OPTION

Step 1 : Open file /etc/vimrc through vi editor & put below word in end of that file

set number

:wq

Step 2 : All work Done, now try to open any file through vi editor

For more Infotmation Click here World Of Information.

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: