News for hackers. Stuff that matters.
Re:Relative Line Numbers in Vim by siddboots on Monday June 03, 2013 @02:56AM (#5811789)
Is this a commonly known feature? Because I have never seen it before. I wish I had been introduced to it about 10 years ago.
Re:Relative Line Numbers in Vim by akkartik on Monday June 03, 2013 @03:18AM (#5811843)
Yeah I had the same reaction last September when I saw https://news.ycombinator.com/item?id=4496578. But my git history shows I disabled it again a day later. Maybe enabling it just in normal mode will make it stick this time.
Re:Relative Line Numbers in Vim by NoodleIncident on Monday June 03, 2013 @03:06AM (#5811815)
I saw it in Learn Vimscript the Hard Way. I assumed it was common knowledge, since I couldn't see any other practical way to use 5j, etc, on a regular basis, but it's apparently less well-known than I thought.
Re:Relative Line Numbers in Vim by ralph on Monday June 03, 2013 @05:54AM (#5812300)
Pre-vim, one would get quite proficient at judging line distances, e.g. 11yy, through practice. Mind you, that was probably helped by text being a fixed size on a serial terminal and bigger than much text today. However, I do wonder if the article is over-promoting movement by lines. Movement commands like ), }, ]], and good old / should be readily considered as well.
Re:Relative Line Numbers in Vim by _pmf_ on Monday June 03, 2013 @03:17AM (#5811842)
Apparently, it has been introduced in 7.3, which is pretty recent.
Re:Relative Line Numbers in Vim by amiheines on Monday June 03, 2013 @03:55AM (#5811947)
The OP says it's new in version 7.3 I also wish it was done earlier since I found myself trying to use commands like '5j' and giving up a long time ago.