I've turned on vim's relative line numbers, it starts from 0 but doing somthing like 10dd
means I only get up to line 9, leaving the last one behind (becuase it's 10 including the current line). Yes, I know, It's only a super simple equation (10 + 1) but it's time taken up when I just want to check the number in the gutter and instantly get the number.
Is there a way to change the number the relative numbers start on? From 0 to 1? I've googled but I can't find anything and I did check out VIM's help page on the 'relativenumber' and 'number_relativenumber' sections but I couldn't see anything on it (or I probably missed it if it's there).
So is there any way to do this or is just not possible?
d10
it behaves in a way that is consistent withrelativenumber
. This is also true fory10
and others. I believe these are the commands that devoloper of relative number had in mind. Not really an answer to your question but it might help you.d10
you'll delete those 10 lines plus the one you're on. But I suppose if you're used to the other form this could still be annoying.d10
to get relative line number 10 doesn't delete 10 lines plus the current one, it deletes 10 lines including the current one (up to relative line number 9), meaning you have to typed11
to get to relative line number of 10; so yeah, unintuitive.