feat(keymaps): move by display line through wrapped text #9

Merged
rootiest merged 1 commits from feat/display-line-motions into main 2026-10-03 16:02:39 +00:00
Owner

Summary

  • Count-less j/k/<Down>/<Up> in normal and visual mode act as gj/gk, so long wrapped lines (mostly Markdown) are navigated screen line by screen line.
  • With a count (5j) they still move by real lines, so relative line numbers keep working. Operator-pending mode is untouched (dj/yk stay linewise).
  • Insert-mode <Down>/<Up> also follow display lines, deferring to the native popup menu when visible; blink.cmp's mappings fall back to them.
  • README mappings table updated.

Testing

  • Headless nvim on a 150-char line wrapped at 40 cols: j/<Down> stay on line 1 and advance one screen line, 2j jumps to line 3.
  • Insert mode with the full config: <Down> advances one screen line within the wrapped line.
## Summary - Count-less `j`/`k`/`<Down>`/`<Up>` in normal and visual mode act as `gj`/`gk`, so long wrapped lines (mostly Markdown) are navigated screen line by screen line. - With a count (`5j`) they still move by real lines, so relative line numbers keep working. Operator-pending mode is untouched (`dj`/`yk` stay linewise). - Insert-mode `<Down>`/`<Up>` also follow display lines, deferring to the native popup menu when visible; blink.cmp's mappings fall back to them. - README mappings table updated. ## Testing - Headless nvim on a 150-char line wrapped at 40 cols: `j`/`<Down>` stay on line 1 and advance one screen line, `2j` jumps to line 3. - Insert mode with the full config: `<Down>` advances one screen line within the wrapped line.
rootiest added 1 commit 2026-10-03 15:51:07 +00:00
Count-less j/k/<Down>/<Up> in normal and visual mode act as gj/gk, so
long wrapped lines (mostly Markdown) can be navigated screen line by
screen line. Counts still move by real lines to keep relative-number
jumps working, and operator-pending mode is untouched (dj/yk stay
linewise). Insert-mode <Down>/<Up> follow display lines too, deferring
to the popup menu when it is visible.
rootiest merged commit 073446e758 into main 2026-10-03 16:02:39 +00:00
rootiest deleted branch feat/display-line-motions 2026-10-03 16:02:39 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/neovim-config#9