How To Get Line Number Count In Vim Editor
In order to make this setting active, we will need to make some small change in the configuration file of the Vim editor. You can find the configuration of Vim in the /etc/vimdirectory with the name vimrc. Open this file by running the following command in the terminal:
sudo gedit /etc/vim/vimrc
Once the file is opened, navigate to the end of the file and add the following:
set nu
That’s it, now whenever you will open any file with the Vim editor you will see the line count.

