News for hackers. Stuff that matters.
Re:Vim Tips For Intermediate Users by yen223 on Tuesday May 19, 2015 @11:19PM (#9574476)
Is there any way to set relative numbering in Vim to be 1-indexed? I want to avoid mentally adding 1 every time I want to yank a few lines.
Re:Vim Tips For Intermediate Users by realyze on Tuesday May 19, 2015 @11:51PM (#9574553)
Re:Vim Tips For Intermediate Users by greggyb on Wednesday May 20, 2015 @11:48AM (#9577100)
Rather than <number>yy, you could do y<number>j or y<number>k and it works appropriately with the relative numbers; yj == 2yy. I always use this with c, d, and y commands.