kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

feat: Enable relative line number by default

Open yosuanicolaus opened this issue 2 years ago • 5 comments

Enable relative line number by default

I think it might be very useful to have this turned on by default. It's one of the greatest feature from vim IMO- (as a beginner) being able to jump to whatever line by just looking at the relative line numbers, and then "7j" / "12k" / etc.

yosuanicolaus avatar Feb 17 '23 22:02 yosuanicolaus

Please leave it as it is, I think it's really annoying for pair programming or pointing something out to a colleague in a zoom meeting. If you need it it's easy to enable.

It would be cool tough to have both 😅

szechp avatar Feb 18 '23 12:02 szechp

I think it shouldn't be the default, but maybe include it as a comment.

stefanbildl avatar Feb 18 '23 16:02 stefanbildl

I just found out there is a hybrid option in vim, where the current one displays the actual line number instead of zero. That would be a nice compromise

szechp avatar Feb 18 '23 16:02 szechp

This is really cool aswell: Relative in normal mode, absolute in insert mode:

autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber 

But I really have to say, by doing things like this we get away from what the purpose of this repo is: a minimal starting point for people to get into neovim. The more stuff we put in there, the closer this gets to a full blown preconfig like astro or lunar.

szechp avatar Feb 18 '23 17:02 szechp

I didn't realize that relativenumber was a pretty opiniated/debated topic in vim. I thought it was the standard to use them haha. Well, it's completely fine then. Should I close this PR?

yosuanicolaus avatar Feb 19 '23 08:02 yosuanicolaus