How to show line numbers in Vim

Have you ever wondered how to show the line numbers in your vim editor?

The solution is quite easy.

Find and open your .vimrc file, usually in your home directory.

Add the following code snippet to the file

set number

To remove the line numbering simply write the following instead

set nonumber
This entry was posted in Software and tagged , , . Bookmark the permalink.