Create a file named  “.exrc”  with the following content  in  ~/ :

#  vi  .exrc

se nu

save and exit.

Now, open any file and you will have line nos. mentioned.


To go to any particular line number

Open the desired file and :

[line no.] + shift + g

Eg.  25 +  shift  +  g

Line no. should be entered in normal way by pressing  “2” and “5” and then “shift”  and  “g” together.


To go to the last line :

shift  +  g

To go to the first line :