I would like to see this feature as well!
Relative line numbers, because plugins can't properly do it
Together with this it would be useful to have a Goto relative line offset, eg:
Goto line (Ctrl+G) :+3
- jump 3 lines down
Goto line (Ctrl+G) :-3
- jump 3 lines up
Bumping this. Any chance we could get an API or direct implementation to make this possible?
another bump. Now with @wbond working on ST, any chance we might see this implemented anytime soon?
I’m just getting into VIM keybindings and it seems like having relative numbering is almost essential. This would be so useful! BUMP
@kingkeith Can you point to a specific plugin that does it? Or you’re just saying it’s possible now?
Hi,
I just created this plugin, now.
Inspired by VintageLine, but this it use Phantoms instead Regions. It’s unestable, yet. Please, help me to improve it, test it and develope it.
Thanks.
This is almost working for me! I can see the relative lines if I scroll to the left, but as soon as I move my cursor, it automatically scrolls to the right and hides them. How do I prevent this?
unfortunately phantoms don’t play well with the indentation guides, making them appear in random places
I doubt there is anything that can be done to fix this, however…
with relative line numbers:
without relative line numbers:
I don’t think it’s possible to implement it using phantoms. At least not a usable solution. There are too many issues and limitations. francescarpi/RelativeLineNumbers
is a good attempt.