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!

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!

  • @B Layer yup :) – KnownAsDon Feb 20 '18 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.