You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both <n>j & <n>k jump 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/k move 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 when j/k are 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.
This discussion was converted from issue #11041 on June 26, 2024 16:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
(This is an attempt to re-open #10778)
Summary
Both
<n>j
&<n>k
jump 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/k
move 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/k
are 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