DEV Community

Discussion on: You're using Vim Wrong - Relative Line Numbers

Collapse
 
moopet profile image
Ben Sinclair

I do use relative line numbers in my active window, because I've been trying to get used to them, but it's not working that well for me.

If it's a couple of lines, like less than 10, I'm find just eyeballing it. If it's more than that I'll either use some combination of H M and L to get close, then eyeball it, or I'll use the actual line number like d107G which is more keypresses but is just as targetted as the relative numbers.

To be honest, my brain kind of gets upset with them changing as I move around!

Collapse
 
ug02fast profile image
Arthur Zhuk

I feel the mental overhead of deciding between eyeballing the movement and using relative line numbers in those scenarios as well. Pay attention to what you do when you're in flow. That might be the most effective for you. Feels like any movement ~+/- 5 lines can be easily eyeballed.