Author : beriba | 05/13/2013

By default vim editor doesn’t show line numbers. To change that behaviour you just have to do few very simple steps:

  • create file .vimrc in your home directory
  • touch ~/.vimrc
  • add below line to the above file
  • :set number

Save the file and voila. Any time you open vim, you will see line numbers.