Why are relative numbered movements not added to jumplist by default??

3 months ago by unglueclass23 to c/neovim

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.

sxwpb 2 points 3 months 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

path: 0 24596332, hotness: undefined, score: 2, children: 0
neovim
neovim

@programming.dev

login for more options
2935
238
89

go to feed...