19 December 2009 1 Comment

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

Vim_thumb

That’s it, now whenever you will open any file with the Vim editor you will see the line count.

VimLineNumber

  • Nospam

    Ctrl-G: show total line number in status bar