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.
[ Parent
| on HN ]
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.
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.
Apparently, it has been introduced in 7.3, which is pretty recent.