question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support smart relative line numbers

See original GitHub issue

Is your feature request related to a problem? Please describe. It would be nice if there was a configuration option such that line numbers are relative when jumping might be used (example:10j), and absolute when they could not.

Describe the solution you’d like My suggestion would be to have a configuration option smartRelativeLineNumbers that, when enabled, overrides user settings on line numbers and turns on relative line numbering in normal and visual modes, and absolute in insert mode.

Describe alternatives you’ve considered Chintzy plugins. aiotecism/amVim, which enables this feature, but is otherwise not as good of a plugin for my needs.

Additional context n/a

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
maxluoXIIIcommented, Jul 3, 2019

Hi, I was wondering if work on this feature is still in progress?

3reactions
aymanbagabascommented, Jul 14, 2020

Test build in case anyone wants to try it out! vim-1.14.5-pr5010.vsix.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vim's absolute, relative and hybrid line numbers
Vim's regular line numbers number lines absolutely, relative numbers are relative to the current line and “hybrid” numbers combine both.
Read more >
Relative line numbers in Visual Studio Code - Koen Woortman
Open up the settings with Ctrl+, or via Preferences > Settings . In here look for the setting called "Editor: Line Numbers" and...
Read more >
How can I show relative line numbers?
I actually use both relativenumber and number in my vimrc which will use relative numbers for all lines except the current line. set...
Read more >
People who use relative line numbering, how do you ... - Reddit
So now I have the current line number wherever the cursor sits, plus relative line numbers up and down from there for granular...
Read more >
Mode Dependent Relative Line Numbers in VSCodeVim
lineNumbers between on and relative) using VSCodeVim keybindings. Mode Dependent Line Numbers with VSCodeVim. Solution is quite simple, but it ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found