0

In my experience with vim I found relative numbers pretty useful. But I would like to know if is there an argument I could give to the my neovim configuration file so I could configure it in such way that relative numbers stay the same but in the current line number it actually displays the line I am at and not just the number 0. Any help would be greatly appreciated!

1 Answer 1

2

That's my everyday configuration. Just set both of these...

:set relativenumber
:set number

If, for example, the cursor is on line 50 you'd see

..
 2
 1
50
 1
 2
..

That's it!

1
  • @B Layer yup :)
    – KnownAsDon
    Feb 20, 2018 at 12:46

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .