8
submitted 2 weeks ago* (last edited 2 weeks ago) by unglueclass23@programming.dev to c/neovim@programming.dev

Doing something like 5G, the location before jumping to the 5th line gets added to the jumplist. However, if you do 5j or 5k - they do not. You need to manually do m+backtick and then do 5j.

I'm interested is there any reasoning for this? Seems such a weird default behavior.

top 1 comments
sorted by: hot top controversial new old
[-] sxwpb@lemmy.world 2 points 2 weeks ago* (last edited 2 weeks ago)

because ‘j’ isn’t a jump motion (:h jump-motions). Even with a count before it, while it acts like a ‘jump’, it’s only a modifier to multiply ‘j’ [count] times

this post was submitted on 02 Jul 2026
8 points (100.0% liked)

Neovim

2873 readers
1 users here now

founded 3 years ago
MODERATORS