Hacker News new | ask | show | jobs
by bayindirh 1457 days ago
It is already present on the lower right by default. Why lose a column?
4 comments

I like line numbers because when I'm editing code in a remote meeting, I or someone else can refer to lines by number. The current line is not the only one that matters. I use relative line numbers because I like doing e.g. 9k or whatever. Others on a remote call often refer to other parts of the code with "9 up" or "9 down" (since "9k" and "9j" sound too alike in a noisy call).
When I started pairing every day at work, I used to do:

  if $WORK_COMPUTER
    set number
  endif
But then I came to like line numbers and just have 'em on all the time now.
You can selectively turn them on as a meeting aid, no?
Yup that's what I do as needed, which for me is pretty rare.
It makes it easy to jump to other lines on your screen, e.g. maybe you want to split out half the code from a loop to another function. You can't use di{ to delete everything in the {} because you only want half of it, but if you can see that the loop contents end on line 98 you can go d98G
Then I can easily go to the line I want to go. :34 takes me to line 34
34G will save you a keystroke :-D
...and 34gg will save you a chord ;)
It will, but I generally prefer chords on separate hands over double keys on the same hand.
I actually agree with you and am now wondering why the heck I’ve used gg all this time.
I mean, I have a 32" 4k monitor for a reason.
I mean, every column counts, even in a 32" 4K display. Also, not all of us have the space to fit these screens everywhere we work.
Reason being outdated indexing UX?