Skip to content

feat: show absolute line number on cursor in relative mode - #32

Closed
vasiltop wants to merge 1 commit into
mainfrom
feat/relative-line-current-number
Closed

feat: show absolute line number on cursor in relative mode#32
vasiltop wants to merge 1 commit into
mainfrom
feat/relative-line-current-number

Conversation

@vasiltop

Copy link
Copy Markdown
Owner

Summary

  • Relative line numbers now show the absolute 1-based line on the cursor row (vim number + relativenumber) instead of 0
  • Neighboring lines still show distance from the cursor
  • Docs and the relative line-number test updated to match

Test plan

  • just test line_numbers_relative
  • Visually confirm :relativenumber gutter shows the real current line and relative distances elsewhere

Made with Cursor

Match vim's number+relativenumber: keep distance labels elsewhere, but
display the real 1-based line on the current row instead of 0.
@vasiltop

Copy link
Copy Markdown
Owner Author

Closing as duplicate of #27 — main already shows the absolute line number on the cursor row in relative mode (ee1ee1a). The conflict was from reintroducing that same change.

@vasiltop vasiltop closed this Aug 21, 2026
@vasiltop
vasiltop deleted the feat/relative-line-current-number branch August 22, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant