Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
yen223
· 11y ago · 0 comments
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.
Comments
[–]
realyze
11y ago
Hm, probably not:
http://stackoverflow.com/questions/9580617/vim-display-relat...
[–]
greggyb
11y ago
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.