Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

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

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.

View original on programming.dev
9

1 reply

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

2

You reached the end