News for hackers. Stuff that matters.
Re:Better line numbers for Vim by muuck on Saturday July 13, 2013 @09:49PM (#6039544)
My problem with relative numbering is that it doesn't seem to work correctly when a line is wrapped.

Say I want to move 6 lines down. I use 6j, but one of the lines I want to jump over is wrapped and occupies 2 lines in my editor. That will mean my cursor will end up at the line that was previous numbered 5. This behavior drives me nuts.

Re:Better line numbers for Vim by btn on Saturday July 13, 2013 @10:17PM (#6039621)
That shouldn't happen unless you've mapped "j" to "gj" (which is fairly common for people who use line wrapping): http://vimdoc.sf.net/htmldoc/motion.html#gj
Re:Better line numbers for Vim by roryokane on Sunday July 14, 2013 @03:54AM (#6040279)
If you?ve remapped `j` and `k` to move visually, you can still move linewise using `<CR>` (Enter) and `-`. They are equivalent to `j^` and `k^`.
Re:Better line numbers for Vim by muuck on Sunday July 14, 2013 @08:49AM (#6040750)
That's right, I have remapped j and k. I had it for so long that I forgot it is not the default behavior.