3 ms·
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.
by yen223 11y ago
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.
- realyze 11y agoHm, probably not: http://stackoverflow.com/questions/9580617/vim-display-relative-linenumbers-starting-with-1 http://stackoverflow.com/questions/9580617/vim-display-relat...
- greggyb 11y agoRather 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.