In my .vimrc i have added this line
set number
But it only displays the line number for the lines that exist in the buffer, and not beyond this; after this it just shows ~
.
How can I show line numbers for the entire visual area?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityIn my .vimrc i have added this line
set number
But it only displays the line number for the lines that exist in the buffer, and not beyond this; after this it just shows ~
.
How can I show line numbers for the entire visual area?
10G
(to do to the tenth line) simply won't work because from Vim's perspective there isn't a "tenth line"... Vim works a bit different than many other editors in this respect, which could be considered both a good and bad thing depending on your assumptions ;-) – Martin Tournoij Aug 28 '16 at 20:33