Replies: 1 comment
-
|
I also had this issue, but g<j/k> was what I was looking for. I definitely agree that a config option that changes how relative line numbers are interpreted would be nice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(This is an attempt to re-open #10778)
Summary
Both
<n>j&<n>kjump visual lines; however, relative line numbers mark textual lines. As a result, trying to jump several lines using relative line numbers results in unexpected behaviour when some lines are wrapped.Details
In the original issue it was said that this is expected behaviour as per the FAQ but the FAQ only talks about why
j/kmove visually by default (which I do agree with) when the real issue is the way relative line numbers work.Absolute line numbers being textual makes sense for following compiler errors and the like. Relative line numbers, however, are solely used for jumping multiple lines using
j/k(at least from my experience) so making line numbers textual whenj/kare visual by default doesn't seem to be reasonable.Proposition
Make relative line numbers mark visual lines of text by default or at least make it configurable to do so as it is more intuitive in combination with
<n>j&<n>k.Beta Was this translation helpful? Give feedback.
All reactions