Re:Numbers.vim - better line numbers for vim
by dionidium on Thursday June 28, 2012 @12:30PM
(#4172450)
That's fine for determining what line you're on, but visible line numbers make it much easier to jump to a particular line. I've only recently set number in my .vimrc and wish I'd have done it sooner.
Do you use (){}[] and others to move about? I rarely need to know the line number to move to on the screen.
That only really works well if the line you want is visible.
I've found searching to be much quicker, since I know class/method/variable names more than I know line numbers - we follow reasonably standard names for things in the projects we work on.
I do that by jumping to the particular line. :<linenum> or <linenum>G does that.
Re:Numbers.vim - better line numbers for vim
by hesitz on Thursday June 28, 2012 @01:09PM
(#4172671)
I think the point is that it's harder to see what line number you want to jump to if you don't have line numbering on. . . .
Re:Numbers.vim - better line numbers for vim
by Scriptor on Thursday June 28, 2012 @01:16PM
(#4172707)
Right, the alternative is to just sort of guess how much you need to ctrl-u/d or j and k to get to a specific line. Also, I guess it depends on screen size. I usually have plenty so the line numbers' usefulness outweighs the extra space required, at least for me.
Re:Numbers.vim - better line numbers for vim
by dionidium on Thursday June 28, 2012 @01:35PM
(#4172815)
Yes, that's exactly my point
Re:Numbers.vim - better line numbers for vim
by dionidium on Thursday June 28, 2012 @01:37PM
(#4172826)
Yes, that's how we all jump to a particular line :) It's just easier to target a specific line when numbering is turned on, as hesitz said.
Re:Numbers.vim - better line numbers for vim
by nathan_long on Thursday June 28, 2012 @02:09PM
(#4173005)
They also make it much easier to find the line number named in an exception backtrace. :)
I just tried turning off line numbers, and you're right, it's great. They really don't provide enough value to justify taking 4 columns on every vertical split.
I use a pretty large font size for my terminal, and the extra 8 columns finally allows for two 80 column vertical splits on my laptop. Thanks for the suggestion!
I find line numbers on the side clutter up my view too much. I always use 80 character terminal widths, to make it easier to stick to my PEP8 validation script we run.